mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
workaround for empty places
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@875 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
e2e6b0324d
commit
cd33164906
1 changed files with 3 additions and 1 deletions
|
@ -160,7 +160,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
type = stop.getString("anyType");
|
||||
final String name = stop.getString("object");
|
||||
final JSONObject ref = stop.getJSONObject("ref");
|
||||
final String place = ref.getString("place");
|
||||
String place = ref.getString("place");
|
||||
if (place != null && place.length() == 0)
|
||||
place = null;
|
||||
final String coords = ref.optString("coords", null);
|
||||
final int lat;
|
||||
final int lon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue