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:
andreas.schildbach@gmail.com 2011-05-07 12:43:42 +00:00
parent 0e79a0011c
commit 3097a52493

View file

@ -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]));