Skip to content
Bryan Housel edited this page Apr 27, 2021 · 2 revisions

Feature files are optional .geojson files found under the features/ folder.

Each feature file defines a custom region (aka geofence) where a community is considered valid.

  • features/*
    • north-america/new_jersey.geojson
    • north-america/quebec.geojson
    • and so on…

 

File contents

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": [  ]
  }
}

GeoJSON Protips

Home

For Contributors

For Developers

Information for developers using the osm-community-index in another project.

For Maintainers

Information for maintainers, including how to clone and build the project.

 

Clone this wiki locally