Skip to content

REST API should support reverse-geocoding #278

@slinkp

Description

@slinkp

Currently, there's no way to ask openblock's API what address it would use to describe a point.

Proposed API:


GET /api/dev1/geocode/reverse/?lat=100.0&lon=-100.0

Proposed response: A GeoJSON feature with the address in the 'location_name' property, for symmetry with other GeoJSON features in the API.

    { "type": "Feature",
      "geometry": {"type": "Point", "coordinates": [-100.0, 100.0]},
      "properties": {
        "location_name": "100-147 Main St",
        }
    }

This is a prerequisite for #284

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions