Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API should support reverse-geocoding #278

Open
slinkp opened this issue Sep 28, 2012 · 1 comment
Open

REST API should support reverse-geocoding #278

slinkp opened this issue Sep 28, 2012 · 1 comment

Comments

@slinkp
Copy link
Contributor

slinkp commented Sep 28, 2012

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

@slinkp
Copy link
Contributor Author

slinkp commented Sep 28, 2012

Ticket imported from Trac:
http://developer.openblockproject.org/ticket/285
Reported by: slinkp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant