GeoJsonParser

open class GeoJsonParser

Parses a JSONObject and places data into their appropriate GeoJsonFeature objects. Returns an array of GeoJsonFeature objects parsed from the GeoJSON file.

Constructors

Link copied to clipboard
constructor(geoJsonFile: JSONObject)
Creates a new GeoJsonParser

Functions

Link copied to clipboard
open fun getBoundingBox(): LatLngBounds
Gets the array containing the coordinates of the bounding box for the FeatureCollection.
Link copied to clipboard
Gets the array of GeoJsonFeature objects
Link copied to clipboard
open fun parseGeometry(geoJsonGeometry: JSONObject): Geometry
Parses a single GeoJSON geometry object containing a coordinates array or a geometries array if it has type GeometryCollection.