SEO Class in Chicago, IL
Are you a Google Analytics enthusiast?
More SEO Content
Tracking Location On Google Maps Via Smartphone
Posted 19 August 2010 - 03:18 AM
I put together a website for a group of guys making a charity bike ride across the US in aid of a local charity for terminally ill children, and they want their friends etc to be able to track their progress through an embedded Google map on the site. I understand that this is possible but have been unable to find much in the way of documentation about it online. All that I can find is tracking your own location on s smart phone which does not help much...
Can anyone point me in the right direction please?
Posted 19 August 2010 - 04:12 AM
I'd suggest using the free code download there then the cyclists with smartphones can log on, get the lat and long, store that in a database then others will be able to track the progress.
Geolocation needs support for navigator.geolocation in the browser, most decent smart phones have this.
The download on that site includes geo.html a page with a div, geo.js which does the navigator.geolocation and ajax stuff and geo.php which sends the lat and long to Google.
This gives new meaning to local search: where's my nearest coffee shop? Downstairs! It is that accurate when using GPS info! You just need the data on the back end to work with.
All pretty simple, there should be enough code there to get you started.
Posted 19 August 2010 - 09:45 AM
What I'm specifically trying to do is track them in real time by using their Google Latitude code to pull in the lat/lon of their current location rather than logging their location at certain points, but storing their historic locations could also be really useful in plotting a map that shows not onlywhere they are but where they have been and when! I've downloaded the code thanks and I'll let you know how I get on.
Posted 19 August 2010 - 10:30 AM
Limitations with this method would be range and signal, keeping a constant state of state and so on.
The Geolocation API spec from W3 knows more than I ever will!
Isn't there a jogging / cycling style app that can track your run / cycle on a map, wouldn't that work? If a wheel has been invented once......
In my tests with that code it's either spot on to the point it's scary or out by about 200 meters. The difference I suppose between GPS and network triangulation.
Posted 20 August 2010 - 02:59 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users