How to fetch the country name based on latitude and longitude in codename one..?

105 views Asked by At

I am trying to retrieve the country name using Lat and Long I fetched using locationmanager in codename one... How to get country, state, city, zip based on these parameters..??

1

There are 1 answers

2
Shai Almog On

You need to use a webservice that will translate location data to location meta data e.g. this one https://www.codenameone.com/blog/dynamic-autocomplete.html

Notice that the sample above uses a different feature of that webservice but the same concept applies.