ConstArray of POI objects with id, latlng (or location), and optional attributes.
A GeoJSON FeatureCollection. Items without an id or valid coordinates are skipped.
Convert an array of route objects to a GeoJSON FeatureCollection (LineString features).
Array of route objects with id and a geometry.type === "LineString".
A GeoJSON FeatureCollection. Items without valid LineString geometry are skipped.
Convert an array of zone objects to a GeoJSON FeatureCollection (Polygon features).
Array of zone objects with id and a geometry.type === "Polygon".
A GeoJSON FeatureCollection. Items without valid Polygon geometry are skipped.
Auto-detect the input data type and convert to a GeoJSON FeatureCollection. Handles: existing GeoJSON pass-through, POI arrays, route arrays, zone arrays.
The input data. Can be a GeoJSON object or an array of POI/route/zone items.
A GeoJSON FeatureCollection, or an empty one if the type cannot be determined.
Convert an array of POI objects to a GeoJSON FeatureCollection.