Javascript Using Geolocation API

380
1
12-10-2011 06:40 PM
ShaunWeston
Occasional Contributor
I've been thinking about how to go about developing a Javascript Mobile application to capture someones route and just after some ideas.

Basically what I want to do is track a route of a cyclist from point A to point B and basically digitise a line for that route, which would capture the time as well. I was thinking of using the Geolocation API to capture points every 20 seconds or so and then push that to a model on a server, which would then convert it to a line and make it available as a map service?

Not sure what the best way would be?
0 Kudos
1 Reply
StephenLead
Regular Contributor III
I was thinking of using the Geolocation API to capture points every 20 seconds or so and then push that to a model on a server, which would then convert it to a line and make it available as a map service


Rather than pushing it to the server to create the line, you may be able to edit the line on the client, using the Editing Widget.

This should be faster as you're not relying on communication between the client and server.

Steve
0 Kudos