GeoJsonParser

Parser for GeoJSON data to convert to map overlays.

Supports GeoJSON Feature, FeatureCollection, and direct geometries:

  • Point -> Marker

  • LineString -> Polyline

  • Polygon -> Polygon

  • MultiPoint -> Multiple Markers

  • MultiLineString -> Multiple Polylines

  • MultiPolygon -> Multiple Polygons

Functions

Link copied to clipboard
fun parse(geoJsonString: String): GeoJsonResult

Parse GeoJSON string and return parsed features.