Merge pull request #5096 from osmandapp/PaulsBranch

Made a small improvement in subway entrance detection
This commit is contained in:
Alexey 2018-03-04 14:07:30 +03:00 committed by GitHub
commit 0e7dd7c0f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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