Welcome to WebmasterWorld Guest from 54.224.230.193

Forum Moderators: open

Message Too Old, No Replies

User Coordinate Fallback Options

     
6:01 pm on May 16, 2012 (gmt 0)

Full Member

5+ Year Member Top Contributors Of The Month

joined:Sept 30, 2009
posts:226
votes: 1


I am developing a web service to list nearby niche locations to users.

In order to do this I need the user's coordinates, but since I will be searching listings in a 50km range accuracy is not my primary concern.

Currently I am using navigator.geolocation to get the user's coordinates but I am looking at fallback options.

Searching online I found developers using the Google ClientLocation API, but I couldn't find any official documentation on this and all postings I found were dated back in 2008, 2009. I don't know if this service is even being offered anymore as when I tested it at work it could not find my location.

Another option I found is to install and maintain my own "ip to coordinate" database. Since accuracy isn't my primary concern I could get away with one of the free packages that are available, but this seems to be pretty daunting task just to install and maintain.

Further, I'd like my web service to be highly mobile and I am watching page download sizes like a hawk.

I know I am not the only one using user coordinates, so I am pretty interested in knowing what people are using as fallbacks.
10:49 pm on May 16, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Can you do PHP? I've been pretty happy with geoplugin.com.
3:25 am on May 18, 2012 (gmt 0)

Full Member

5+ Year Member Top Contributors Of The Month

joined:Sept 30, 2009
posts:226
votes: 1


Thank you, I was previously unaware of that site but it will work very well for my needs.