Skip to content
Bryan Housel edited this page May 24, 2024 · 6 revisions

File List

The files under dist/* are generated:

  • defaults.json - A JSON object containing only the default strings
  • resources.json - A JSON object containing only the community resources
  • featureCollection.json - A GeoJSON FeatureCollection containing only the custom Features
  • completeFeatureCollection.json - A GeoJSON FeatureCollection of all Features, each with available resources included in a resources property, and all text strings and urls resolved.
  • img/* - SVG logos for all the resource types


🧐: "Why use .json instead of .geojson as the file extension for generated GeoJSON files?"
🤓: "So you can require or import them as modules into other JavaScript code if you want."

Each file is available in both regular .json or minified .min.json format.

Metadata

Each JSON file contains a block of metadata like:

"_meta": {
  "version": "5.7.0",
  "generated": "2024-05-24T15:54:28.315Z",
  "url": "https://raw.githubusercontent.com/osmlab/osm-community-index/main/dist/resources.json",
  "hash": "4700c9ef9021856da926b75a06763e76"
}
  • version - the semantic version of project when the file was generated
  • generated - the date that the file was generated
  • url - source url where the file is available
  • hash - MD5 hash of the file

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