Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.03 KB

10-standards.md

File metadata and controls

32 lines (26 loc) · 1.03 KB

Standards

GeoJSON Format

{
    "type": "Feature",
    "properties": {},
    "geometry": {
        "type": "Point",
        "coordinates": [
            -73.5826985,
            45.5119864
        ]
    }
}

Data returned by this API is designed to be compliant with the GeoJSON Format (RFC 7946)

Query parameters are also expected to be compliant with this spec, including all POST bodies and query string params. Coordinates are represented in [longitude, latitude, elevation] groups. In query strings, these MUST be sent as comma (,) separated strings consisting only of the longitude and latitude elements.

Example: &origin=-73.5826985,45.5119864

GeoJSON specification has the longitude and latitude components of locations reversed compared to most other geographical data formats. If you're getting strange API results, or your query is resulting in a 422 error, it is likely that you've got the order wrong.