02-18-2013 01:50 AM
I want to calculate distance I have travelled? How can I do that? If I use method distanceTo of geocoordinates,it will give me distance but that won't be in actual way I travelled but just a distance between 2 coordinates.
02-18-2013 02:45 AM
I think you can't do that right now with BB10 directly. You have the start point and the end point of the travel. With for example Google Maps APIs, you can get the route between these points. The route consists of geo points (lat, lon). If you summarize the distance between these points, you have the travels distance.
It has a simple REST interface. The only thing that is hard, is to decode the route information, but there are good example codes on the net.
hope it helps,