mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
fixed coordinates not optional
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@614 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
0e79a0011c
commit
3097a52493
1 changed files with 2 additions and 2 deletions
|
@ -1007,8 +1007,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
final JSONObject stop = aStops.optJSONObject(i);
|
||||
final int id = stop.getInt("extId");
|
||||
final String name = ParserUtils.resolveEntities(stop.getString("name"));
|
||||
final int lat = stop.optInt("y");
|
||||
final int lon = stop.optInt("x");
|
||||
final int lat = stop.getInt("y");
|
||||
final int lon = stop.getInt("x");
|
||||
|
||||
final String[] nameAndPlace = splitNameAndPlace(name);
|
||||
stations.add(new Location(LocationType.STATION, id, lat, lon, nameAndPlace[0], nameAndPlace[1]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue