From fd85ed7c4201db81b3fbbea71aebfb0155066129 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 12 Nov 2020 18:09:59 +0100 Subject: [PATCH] Update city entities --- OsmAnd-java/src/main/java/net/osmand/data/City.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd-java/src/main/java/net/osmand/data/City.java b/OsmAnd-java/src/main/java/net/osmand/data/City.java index f8faef5f67..a29dc3b741 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/City.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/City.java @@ -24,6 +24,10 @@ public class City extends MapObject { public double getRadius() { return radius; } + + public boolean storedAsSeparateAdminEntity() { + return this != DISTRICT && this != NEIGHBOURHOOD && this != BOROUGH; + } public static String valueToString(CityType t) { return t.toString().toLowerCase();