codeforkansascity / meep-backend

MIT License
8 stars 11 forks source link

Geocoding function #89

Closed galbwe closed 3 years ago

galbwe commented 5 years ago

Write a function that takes an address, city, state, and zip code as strings, calls the google geocoding api, and returns a latitude and a longitude as floats. You may assume that the input parameters adhere to the following specifications:

DavidGitThisHub commented 5 years ago

I have code that does this. Although it calls google with an address and then scrapes the coordinates from the json response. They always put the coordinates after the address when you search for one.

DavidGitThisHub commented 5 years ago

PS. This works for anywhere in the world including addresses like: "Malualkon, South Sudan" whose coords are: 9.0161619, 27.6258817 You know, for future use...

galbwe commented 5 years ago

@DavidGitThisHub that is better than what we currently have, so feel free to open a PR. Have you had any issues with them blocking your ip if you use it too frequently?

chris-french commented 4 years ago

@chrisschaaf @krisstee Do we still need this?

chrisschaaf commented 3 years ago

I don't believe we need this at this point. The MVP doesn't account for any backend work on mapping data or areas that we could use this towards. The frontend Google Maps React stuff handles it there.