Understand the GeoJSON output format
gh-pagesThe output is a GeoJSON FeatureCollection. The library produces one feature for:
- All unconnected or "interesting" tagged nodes (POIs).
- All ways (except "uninteresting" multipolygon outlines).
- All multipolygons (simple multipolygons with exactly one closed outer way are represented via their outer way).
Feature Properties
Each feature has an id property (e.g., node/123). The properties object contains:
type: The OSM data type.id: The OSM id.tags: A collection of all tags.meta: Metainformation (e.g., version, timestamp, user).relations: An array of relations the feature belongs to. Each relation object containsrole,rel(the relation ID), andreltags.tainted: A boolean flag set totrueif the geometry is incomplete (e.g., missing nodes or ways).
Note: If flatProperties: true is used, the properties object is flattened to provide a concise list of IDs, metadata, and tags without nested objects.