org.onebusaway.transit_data_federation.bundle.model
public class GtfsBundle extends Object
URL
to a feed to be downloaded, but the file
path will take precedence if specified.GtfsBundles
,
FederatedTransitDataBundleCreator
Constructor and Description |
---|
GtfsBundle() |
Modifier and Type | Method and 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) |
public File getPath()
public void setPath(File path)
path
- the path to the feed (either a directory or a zip file)public URL getUrl()
getPath()
will take precedence)public void setUrl(URL url)
url
- a url where the feed can be downloaded, though
setPath(File)
will take precedence)public String getDefaultAgencyId()
GtfsReader.setDefaultAgencyId(String)
)public void setDefaultAgencyId(String defaultAgencyId)
defaultAgencyId
- the default agency id for the feed (see
GtfsReader.setDefaultAgencyId(String)
)public Map<String,String> getAgencyIdMappings()
Copyright © 2014 OneBusAway. All Rights Reserved.