public final class Territories extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static DataSet |
dataSet |
static java.lang.String |
FILENAME
Internal OSM filename
|
private static java.lang.String |
ISO3166_1 |
private static java.lang.String |
ISO3166_2 |
private static java.util.Map<java.lang.String,GeoPropertyIndex<java.lang.Boolean>> |
iso3166Cache |
Modifier | Constructor and Description |
---|---|
private |
Territories() |
Modifier and Type | Method and Description |
---|---|
static DataSet |
getDataSet()
Returns the territories dataset.
|
static GeoPropertyIndex<java.lang.Boolean> |
getGeoPropertyIndex(java.lang.String code)
Returns the
GeoPropertyIndex for the given ISO3166-1 or ISO3166-2 code. |
static java.util.Set<java.lang.String> |
getKnownIso3166Codes()
Get all known ISO3166-1 and ISO3166-2 codes.
|
static void |
initialize()
Initializes territories.
|
static boolean |
isIso3166Code(java.lang.String code,
LatLon ll)
Determine, if a point is inside a territory with the given ISO3166-1
or ISO3166-2 code.
|
public static final java.lang.String FILENAME
private static final java.lang.String ISO3166_1
private static final java.lang.String ISO3166_2
private static volatile java.util.Map<java.lang.String,GeoPropertyIndex<java.lang.Boolean>> iso3166Cache
private Territories()
public static java.util.Set<java.lang.String> getKnownIso3166Codes()
public static GeoPropertyIndex<java.lang.Boolean> getGeoPropertyIndex(java.lang.String code)
GeoPropertyIndex
for the given ISO3166-1 or ISO3166-2 code.code
- the ISO3166-1 or ISO3166-2 codeGeoPropertyIndex
for the given code
public static boolean isIso3166Code(java.lang.String code, LatLon ll)
code
- the ISO3166-1 or ISO3166-2 codell
- the coordinates of the pointpublic static DataSet getDataSet()
public static void initialize()
GeoPropertyIndex
as most look-ups are read-only.