3 ms·
USE google.loader.ClientLocation; to sniff out the current location of the site visitor. I'm in California and you're showing me NYC. Not super effective. Also
by pedalpete 17y ago
USE google.loader.ClientLocation; to sniff out the current location of the site visitor. I'm in California and you're showing me NYC. Not super effective.
Also (as frossie alluded to) you need an input to allow searching by location. Don't worry about zip code vs city, etc. Pass the data from the search box to the google api and it will do the rest.
- mshafrir 17y agoI'm using server side lookup based on ip and falling back to google client location, but you're right on that I should just be using google client location. Definitel gives more accurate results.
- pedalpete 17y agoOh, whatever you use, just use it. It didn't get my location, but placed me in nyc, so I assumed you weren't doing an ip lookup.