Class GtfsBundle
- java.lang.Object
-
- org.onebusaway.transit_data_federation.bundle.model.GtfsBundle
-
public class GtfsBundle extends Object
Captures the path to a gtfs feed, along with information about a default agency id for the feed and agency id translation information. The bundle can optionally specify aURL
to a feed to be downloaded, but the file path will take precedence if specified.- Author:
- bdferris
- See Also:
GtfsBundles
,FederatedTransitDataBundleCreator
-
-
Constructor Summary
Constructors Constructor Description GtfsBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAgencyIdMappings()
String
getDefaultAgencyId()
File
getPath()
URL
getUrl()
void
setAgencyIdMappings(Map<String,String> agencyIdMappings)
void
setDefaultAgencyId(String defaultAgencyId)
void
setPath(File path)
void
setUrl(URL url)
-
-
-
Method Detail
-
getPath
public File getPath()
- Returns:
- the path to the feed (either a directory or zip file)
-
setPath
public void setPath(File path)
- Parameters:
path
- the path to the feed (either a directory or a zip file)
-
getUrl
public URL getUrl()
- Returns:
- a url where the feed can be downloaded, though
getPath()
will take precedence)
-
setUrl
public void setUrl(URL url)
- Parameters:
url
- a url where the feed can be downloaded, thoughsetPath(File)
will take precedence)
-
getDefaultAgencyId
public String getDefaultAgencyId()
- Returns:
- the default agency id for the feed (see
GtfsReader#setDefaultAgencyId(String)
)
-
setDefaultAgencyId
public void setDefaultAgencyId(String defaultAgencyId)
- Parameters:
defaultAgencyId
- the default agency id for the feed (seeGtfsReader#setDefaultAgencyId(String)
)
-
getAgencyIdMappings
public Map<String,String> getAgencyIdMappings()
- Returns:
- a set of agency id mappings that will be used to replace any matching agency i
-
-