mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
Parse 'buildingname' location types when autocompleting names for EFA-based providers
This commit is contained in:
parent
d8ca50189d
commit
f9fd933bfa
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
return new Location(LocationType.POI, 0, lat, lon, place, name);
|
||||
else if ("crossing".equals(type))
|
||||
return new Location(LocationType.ADDRESS, 0, lat, lon, place, name);
|
||||
else if ("street".equals(type) || "address".equals(type) || "singlehouse".equals(type))
|
||||
else if ("street".equals(type) || "address".equals(type) || "singlehouse".equals(type) || "buildingname".equals(type))
|
||||
return new Location(LocationType.ADDRESS, 0, lat, lon, place, normalizeLocationName(stop.getString("name")));
|
||||
else
|
||||
throw new JSONException("unknown type: " + type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue