package com.schneeloch.bostonbusmap_library.data;
import com.google.common.base.Optional;
import com.schneeloch.bostonbusmap_library.database.Schema;
/**
* Created by schneg on 9/1/13.
*/
public class HubwayStopLocation extends StopLocation {
protected HubwayStopLocation(HubwayBuilder build) {
super(build);
}
public static class HubwayBuilder extends Builder {
public HubwayBuilder(float latitudeAsDegrees,
float longitudeAsDegrees, String tag,
String title, Optional<String> parent) {
super (latitudeAsDegrees, longitudeAsDegrees, tag,
title, parent);
}
@Override
public HubwayStopLocation build() {
return new HubwayStopLocation(this);
}
}
@Override
public Schema.Routes.SourceId getTransitSourceType() {
return Schema.Routes.SourceId.Hubway;
}
@Override
public boolean supportsBusPredictionsAllMode() {
return true;
}
}