How to make reverse geocodigry?

Once you create an account in LocationIQ you get your API token . From the API documentation you see that for reverse geocoding requests can be sent to any of the following endpoints

GET https://us1.locationiq.com/v1/reverse.php?key=YOUR_PRIVATE_TOKEN&lat=LATITUDE&lon=LONGITUDE&format=json

GET https://eu1.locationiq.com/v1/reverse.php?key=YOUR_PRIVATE_TOKEN&lat=LATITUDE&lon=LONGITUDE&format=json

So all you have to do is replace YOUR_PRIVATE_TOKEN in the above address and use it in your project . The response that you will get will be in json format so you will have to get the values from json

See an example , I use JsonUtils extension from @Jerin_Jacob

3 Likes