public class GeoJsonParser
extends java.lang.Object
| Constructor and Description |
|---|
GeoJsonParser(JSONObject geoJsonFile)
Creates a new GeoJsonParser
|
| Modifier and Type | Method and Description |
|---|---|
LatLngBounds |
getBoundingBox()
Gets the array containing the coordinates of the bounding box for the FeatureCollection.
|
java.util.ArrayList<GeoJsonFeature> |
getFeatures()
Gets the array of GeoJsonFeature objects
|
static Geometry |
parseGeometry(JSONObject geoJsonGeometry)
Parses a single GeoJSON geometry object containing a coordinates array or a geometries array
if it has type GeometryCollection.
|
public GeoJsonParser(JSONObject geoJsonFile)
geoJsonFile - GeoJSON file to parsepublic static Geometry parseGeometry(JSONObject geoJsonGeometry)
GeoJsonFeatures then
instantiate GeoJsonParser and call getFeatures().geoJsonGeometry - geometry object to parsepublic java.util.ArrayList<GeoJsonFeature> getFeatures()
public LatLngBounds getBoundingBox()