Is Google Maps the right tool to compare 2 routes?

2,379 views
Skip to first unread message

Raul Dias

unread,
Nov 24, 2011, 2:09:18 PM11/24/11
to google-map...@googlegroups.com
Hi,

I am evaluating if Google Maps can be the right tool for my use.

The idea is to have a list of waypoints from a gps ( e.g. watch runner/biker ) and trace the route that he want by.
The first problem I see is that there is a limitation of 8 waypoints in the directions api.

Now assuming a second list of waypoints, I want to compare the the route is the same as the first one.

Is Google Maps the right tool for it?

If not what do you suggest?


Thanks,

-rsd

Barry Hunter

unread,
Nov 24, 2011, 4:55:15 PM11/24/11
to google-map...@googlegroups.com
Why put it though the Directions API at all? if you have a list of coordinates from the GPS, just plot them directly and draw a line. 

You wont get caught out when the subject travelled via a thoroughfare not in Googles' database. 


Plot the two lines in a different colour, and should be easy to visually compare the two routes. 



--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/NJx0JP0RVI0J.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

GTrek

unread,
Nov 25, 2011, 3:54:14 AM11/25/11
to Google Maps JavaScript API v3
Hi Barry,

Is it possible to display those coordinates from a desktop app without
uploading them to a public server first ?

John

Raul Dias

unread,
Nov 28, 2011, 1:26:28 PM11/28/11
to google-map...@googlegroups.com
The problem is that the difference from the points could be more than one block, depending on the speed and acquisition interval.
Think about corners.

Besides I want to automate the route comparison, so, just visually is not the way to go.

-rsd

Rossko

unread,
Nov 28, 2011, 2:42:42 PM11/28/11
to Google Maps JavaScript API v3
> Besides I want to automate the route comparison, so, just visually is not
> the way to go.

You'll need to decide for yourself what criteria you want to use for
that. Might then give you some ideas as to how to actually implement
it. For example, you might decide that a deviation of more than 50m
counts as a "failed" comparison.

Barry Hunter

unread,
Nov 29, 2011, 5:24:45 PM11/29/11
to google-map...@googlegroups.com
Only just found this question.

Not really sure what you asking.

coordinates dont have to be uploaded to a server. Just use the
coordinates in the javascript directly. Wherever you display the
Google Maps API. Persumably you have a webbrowser embedded in the
desktop app, and output some html in that browser - that includes JS
to make a map. Include the coordinates there.

Reply all
Reply to author
Forward
0 new messages