Directly interrogate API for current lat lng based on IP

Hi There,

Does anyone know if there is a way to directly interrogate the API for a lat lng based on a user’s IP?

I know there is the aroundLatLngViaIP, but this is only as part of a search. I want to find that out before I actually trigger the search.

Thanks

Hi @ben4!

Unfortunately this is not possible. This is not something we do today, and we won’t be able to do it anyway because of the licensing of the resource we are using.

I am afraid that you will have to find some sort of data doing the mapping IP -> lat lng and use it in your front-end.

Don’t hesitate if you have any question!

Hi Leo,

No problem, I’ll use Google, yours just seems more accurate :slight_smile:
Thanks

Ben