homepage Welcome to WebmasterWorld Guest from 54.166.148.189
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
User Coordinate Fallback Options
ocon




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

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.

 

rocknbil




msg:4454341
 10:49 pm on May 16, 2012 (gmt 0)

Can you do PHP? I've been pretty happy with geoplugin.com.

ocon




msg:4454847
 3:25 am on May 18, 2012 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved