View Full Version : Overall distance travelled through each location

22 Nov 2011, 10:15 PM

I have a GMAP panel created and inserted few locations. I need to calculate the distance traveled through each location as well as whole distance traveled from first location to last location.

I have attached my code with this message for your convenience.

Please let me know if there are any API Documentation available for the same.


Ajay Patil

23 Nov 2011, 7:58 AM

28 Nov 2011, 10:20 PM
Is there any example related to what I am trying to achieve as in Google API its not much clear and the example link is also not working, so not able to see it.

Thanks in advance for the same.


Ajay Patil

29 Nov 2011, 5:22 PM
I think Mitch ment this link :

Y (http://code.google.com/apis/maps/documentation/javascript/services.html#distance_matrix)our situation illustrates the problem a lot of our customers writing map based ST applications have. Most of the time they have to deal with 2 APIs. Sencha Touch and and Google Maps API meaning they have to look at several places when they have a problem.

That s why we decided to add a full implementation of the Maps API to Gwt4Touch (http://www.emitrom.com/node/70) and offer support for both API and all future APIs we will add the the product.
So if you dont mind using Java you might want to give it a try :)

30 Nov 2011, 12:30 AM
Hey Ekambos,

Thanks very much for your reply. I was able to configure this Google Map in my application. There's still one more issue. Like I have traveled from 1st point to 2,3,4 points. And now I want to calculate the distance traveled through these 1,2,3,4 points means in short 1-4 point distance.

Then how can I calculate the same?

Thanks in advance.


Ajay Patil

30 Nov 2011, 1:33 AM
Well the link i provided shows how to calculate the distance between two poinsts. You might just have to do it for all four points and then summ up.

1 Dec 2011, 3:15 PM
Have a look at http://gwt4touch-maps.appspot.com/ to see what i ment in action.