Single Feature
✓ Published0🌍 Public
CCliffordAnderson
Last edited Feb 5, 2016
Created on Feb 7, 2016
This example shows a single GeoJSON point feature derived from a biodiversity occurrence record, with its geographic coordinates and a linked identifier exposed as properties. The code constructs the feature by first querying the Global Biodiversity Information Facility (GBIF) API with a specific occurrence ID, then parsing the returned JSON to extract the latitude, longitude, and record identifier. Using the XQuery `map` syntax, it assembles a standard GeoJSON object with a Point geometry and a `name` property. The visualization relies on HTTP retrieval via `fetch:text` and JSON parsing via `fn:parse-json`, with no external charting library; the output is intended for a map renderer that consumes GeoJSON.
AI-generated description