I was wondering if there was a way to retrieve an entity's lat/lon
when doing an mql search. From everything I can tell, this isn't
possible. In fact, it doesn't seem to be possible to get the lat/lon
of any entity from any of the provided API methods.
Unfortunately, because of this, if I want to display these entities on
a map, I must first geocode every single address. This significantly
increases the amount of time it takes for my application to respond to
queries.
Is there a reason for not including the lat/lon of entities? Are you
planning on including this at some point? Or am I simply missing
something?
Thank you very much, in advance.
- Tom
You can do that by requesting any specific entity.
For example, if you query:
http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110?apikey=demo&pretty=1
one of the fields is 'geom' which contains that entity's lat/lon. Is
this what you were looking for?
Thanks,
Othman
{
"lat": 37.75629
"lon": -122.4213
"radius": "0.2km"
"entity": [{
"guid": null
"type": "business"
"geom": null
"view.listing": {
"a:verticals": "restaurants"
"b:verticals": "food-and-drink:coffee-houses"
"address": []
"name": null
}
}]
}
On Mar 26, 7:47 am, Othman <oth...@gmail.com> wrote:
> Hi Tom,
>
> You can do that by requesting any specific entity.
>
> For example, if you query:
>
> http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94...