Parse 'buildingname' location types when autocompleting names for EFA-based providers

This commit is contained in:
Andreas Schildbach 2014-01-21 10:55:40 +01:00
parent d8ca50189d
commit f9fd933bfa

View file

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