public class StopSpec extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
String |
id |
double |
lat |
double |
lon |
String |
name |
static long |
serialVersionUID |
Constructor and Description |
---|
StopSpec()
default constructor for deserialization
|
StopSpec(double lon,
double lat)
Create a new stop at a particular location, rather than reusing a stop from the baseline GTFS.
|
StopSpec(String id)
Re-use an existing stop from baseline GTFS data, given a stop ID.
|
Modifier and Type | Method and Description |
---|---|
int |
resolve(TransportNetwork network,
Set<String> warnings)
Given a specification for a transit stop, which can be a reference to an existing stop or the location and
name of a new stop, find or create the stop in the given network.
|
public static final long serialVersionUID
public String id
public String name
public double lat
public double lon
public StopSpec(String id)
public StopSpec(double lon, double lat)
public StopSpec()
public int resolve(TransportNetwork network, Set<String> warnings)
network
- the transit network in which to find or create the specified transit stops.Copyright © 2019. All rights reserved.