pelias / api

HTTP API for Pelias Geocoder
http://pelias.io
MIT License
218 stars 162 forks source link

Add categories support to reverse query. #1662

Open davetha opened 10 months ago

davetha commented 10 months ago

This patch adds the support for categories by passing a get parameter just like https://github.com/pelias/documentation/blob/master/place.md

I was wanted to know the categories on what I was doing a reverse lookup on, and in highly populated areas, some businesses share the same lon/lat. It can often help by including the category type.

You can test it out by using doing the following queries: /v1/reverse?categories&point.lat=26.3622924&point.lon=-80.1355797 /v1/reverse?categories=health&point.lat=26.3622924&point.lon=-80.1355797

Documentation will also be provided in another pull request on pelias/documentation.