Can anyone help me how to get list of business available in particular city using Geoapi.Is it possible to retrieve list of business using particular city in GeoApi. If it is possible please let me know how to do that with sample mql query or url link.
How to search business in particular city using Geoapi in iPhone?
139 views Asked by Kumar At
1
Yes you can retrieve list of business around your location, your query will be as follows,
MQL query:
{"lat": 37.75629, "lon": -122.4213, "radius": "1km", "entity": [{"type": "business", "guid": null}]}
GeoAPI url query: http://api.geoapi.com/v1/q?q=%7B%22lat%22%3A+37.75629%2C+%22lon%22%3A+-122.4213%2C+%22radius%22%3A+%221km%22%2C+%22entity%22%3A+%5B%7B%22type%22%3A+%22business%22%2C+%22guid%22%3A+null%7D%5D%7D&apikey=demo&pretty=1
Here is an example
To get a feel for how GeoAPI works, here are some basic queries. Put the query in browser to see its JSON-formatted result.