22 Nov 2011 10:15 PM #1
Overall distance travelled through each location
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.
23 Nov 2011 7:58 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
28 Nov 2011 10:20 PM #3
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.
29 Nov 2011 5:22 PM #4
I think Mitch ment this link :
Your 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 #5
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.
30 Nov 2011 1:33 AM #6
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 #7