Connect a GeoJSON endpoint and preview its geometry
Connect a GeoJSON file or API URL and check the geometry and attributes before creating a virtual table.
Use GeoJSON when you have a URL that returns features, such as the boundaries of a service area. If needed, install the GeoJSON Connector from Plugins. You need permission to manage the connector.
Connect the source
- Check what the URL returns. A GeoJSON response can contain a single
Featureor aFeatureCollectionwith afeaturesarray. Each feature can include geometry and properties such as a name or code. GeoJSON format reference - In workspace settings, open GeoJSON and select Add Connection. Enter the address in GeoJSON API URL. Leave Data Path (Optional) blank if the response itself is GeoJSON. If the API wraps the features inside another object, enter the path to the array, such as
data.features. - Select Next to run the connection test. After it succeeds, select Next, name the source, and select Create Integration. Check that the connection appears under GeoJSON API Connections.
Verify the spatial data before creating a table
- In the connection’s actions menu, choose Create Virtual Table. On GeoJSON Source, check the URL. If the features are nested, confirm the Feature Path points to the correct array.
- On Spatial Analysis, use Analyze GeoJSON Data to check the detected geometry. For example, a service-area boundary should appear as polygons or multipolygons. Continue to Preview Data. If sample features appear, check that their attributes match what you expect.
- If the preview is empty, verify that the URL returns features and that the path matches the response. If its geometry appears in the wrong place, check that the source follows GeoJSON’s longitude-first coordinate order. GeoJSON coordinate reference
- In Map Fields, keep the geometry and the properties you need, then complete the wizard to create the virtual table.
After creating the table, add it to a Geo Layer map as a table layer if you want to see the features with other workspace data.
Pause a GeoJSON connection and confirm it reads fresh data again
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?