Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.43 KB

README.md

File metadata and controls

58 lines (45 loc) · 1.43 KB

Gazetteer 1.1

The key words, "MUST", "SHOULD", "MAY" in this document are to be interpreted as described in RFC 2119.

Abstract

A gazetteer is a GeoJSON FeatureCollection object. Each entry, (aka "place") is represented by a Feature object.

Schema

In addition to conforming to valid GeoJSON, the rules on these members are as follows:

FeatureCollection object

  • MUST contain a name (string) member.

Geometry object

  • type member MUST be a value of Point.

Properties object

  • MUST contain a zoom (number) member between 0 & 22.
  • MUST contain a place_name (string) member.
  • SHOULD contain a place_description (string) member.
  • MAY contain a tags member, whose value is an array of strings.
  • MAY contain a pitch (number) member between 0 & 60.
  • MAY contain a bearing (number) member between -179 & 180.

Example

{
  "type": "FeatureCollection",
  "name": "Large Urban Parks",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [-73.96067, 40.78166]
      },
      "properties": {
        "place_name": "Central Park, New York City",
        "place_description": "Famous urban park containing many attractions",
        "zoom": 13,
        "pitch": 60,
        "bearing": -179,
        "tags": ["landform-park", "landuse"]
      }
    }
  ]
}