Reverse Geocoding c#

I have been researching this for a while now and I’m no where near closer to an answer. Sadly any snippets of code I could post at this time would simply be examples I have found and not been able to implement. I have stored the Latitude and Longitude and I want to be able to post simply the city, state and country. Thats all I need. I don’t need a visual map or anything I just want to return a few string variables based on the coordinates I have received from my gps. Any assistance is most appreciated.

Use google maps.

It’s in the API documentation:

1 Like

Thank you, but I have already been combing over that for some time now and am missing something. I understand how to pass out the information to the api, but I do not know how to receive it in unity.

Use the unity WWW class:

the url is the this bit:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=YOUR_API_KEY

And when it’s complete, the text property will be the json response.

I’d like to thank you for your response. I managed to figure it out. It was surprisingly simple, which is typically a problem for me as I prefer to complicate things when at all possible. :wink:

Thank you!!!

How?