Made a small improvement in subway entrance detection

This commit is contained in:
PaulStets 2018-03-04 13:04:20 +02:00
parent fca127c51b
commit 784b2f3efc

View file

@ -207,10 +207,10 @@ public class AmenityMenuController extends MenuController {
amenity.getLocation().getLongitude());
boolean useEnglishNames = getMapActivity().getMyApplication().getSettings().usingEnglishNames();
boolean isSubwayEntrance = amenity.getSubType().equals("subway_entrance");
for (TransportIndexRepository t : reps) {
ArrayList<TransportStop> ls = new ArrayList<>();
boolean isSubwayEntrance = amenity.getSubType().equals("subway_entrance");
QuadRect ll = MapUtils.calculateLatLonBbox(amenity.getLocation().getLatitude(), amenity.getLocation().getLongitude(),
isSubwayEntrance ? 400 : 150);
t.searchTransportStops(ll.top, ll.left, ll.bottom, ll.right, -1, ls, null);