-
Notifications
You must be signed in to change notification settings - Fork 873
Feature Files
Bryan Housel edited this page Mar 17, 2021
·
7 revisions
Feature files are optional .geojson
files found under the features/
folder.
Each feature file defines a custom region (aka geofence) where a brand or organization is considered valid.
-
features/*
us/new_jersey.geojson
ca/quebec.geojson
- and so on…
Each file should contain a single GeoJSON Feature
. (Note: A FeatureCollection
containing a single Feature
is ok too - the build script can handle this.)
Only Polygon
and MultiPolygon
geometries are supported.
The build script will automatically generate an id
property to match the filename.
Feature files look like this:
{
"type": "Feature",
"id": "new_jersey.geojson",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": […]
}
}
- There are many online tools to create or modify
.geojson
files. - You can draw and edit GeoJSON polygons with geojson.io - (Editing MultiPolygons does not work in drawing mode, but you can edit the code directly).
- You can simplify GeoJSON files with mapshaper.org
- More than you ever wanted to know about GeoJSON
Contributing to the index
- Feature Files (geofences)
- Using Overpass Turbo
- Config Files
- Property Reference
- Technical Details
Information for developers using the name-suggestion-index in another project.
Information for maintainers, including how to clone and build the project.