3 ms·
Nice! Technical question: I type "Elmhurst, NY" and it converted it to "Elmhurst, Queens, NY 11373, USA", how did you do that? I'm looking to do something simi
by AznHisoka 13y ago
Nice! Technical question:
I type "Elmhurst, NY" and it converted it to "Elmhurst, Queens, NY 11373, USA", how did you do that? I'm looking to do something similar!
- ceejayoz 13y agoMost geocoding APIs (Google: https://developers.google.com/maps/documentation/geocoding/ https://developers.google.com/maps/documentation/geocoding/) will normalize an address and give you data back about it.
- jenniferDewalt 13y agoI use the Google Maps Javascript api for geolocation. It takes a string and returns an array of places that match. Each place object includes a formatted address which I put in the search bar in place of what was initially typed.
- dyladan 13y agoI'm not 100% certain but I think this is the code you are looking for https://github.com/jendewalt/yumhacker/blob/master/lib/geocoder/geocoder.rb https://github.com/jendewalt/yumhacker/blob/master/lib/geoco...