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 Answer
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"
You should replace YOUR_API_KEY with your API Key in the above link.
1 Comment
Surabhi Amit Chembra
Thanks Amir.I will check that out