1

I am new to Python. I used geopy to convert inputted address to latitude and longitude. However, it is not working for all addresses(especially, specific ones including building names etc, like '204 West Rancho Blanco Road, Alamo, TX 78516') but it works fine for 'Keller, Texas'. Is there a more accurate and reliable way? I tried using google api but it errors out that api_key is not found. Please give me inputs

1
  • Which geocoder you have used? Can you update you post to show the code? Commented Aug 26, 2017 at 15:28

1 Answer 1

1

Google Maps Geocode API is helpful in this case. But for sending a request you need to have an API Key. you can get one from here.

After you have your Key you can send requests. The following example requests the latitude and longitude of "1600 Amphitheatre Parkway, Mountain View, CA"

https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=YOUR_API_KEY

You should replace YOUR_API_KEY with your API Key in the above link.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Amir.I will check that out

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.