21.11.2012, 01:05
(This post was last modified: 21.11.2012, 01:18 by campioncino.)
ok. I've created my own java project, and using Bearing i'm able to calculate geodedic distance between 2 point
That's Fine...
More complex, i wanna create a startPoint "A", endPoint "B" and get the route between A-B, as a positions
Now i get the point on Google Maps ...
1)how can i calculate the route?
2)how can i convert the route in points?
That's all...
Thanks for helping me
Code:
double longitude1 = 13.00000,latitude1 =43.0000,longitude2 = 13.12320,latitude2 = 43.02310;
double dist=Bearing.calculateBearing(longitude1, latitude1, longitude2, latitude2).getDistance();That's Fine...
More complex, i wanna create a startPoint "A", endPoint "B" and get the route between A-B, as a positions
Code:
GoogleMapsService service = new GoogleMapsService();
double elevation1=service.getElevationFor(longitude1, latitude1);
double elevation2=service.getElevationFor(longitude2, latitude2);
GoogleMapsPosition p1= new GoogleMapsPosition(longitude1, latitude1, elevation1, "Start");
GoogleMapsPosition p2= new GoogleMapsPosition(longitude2, latitude2, elevation2, "end");1)how can i calculate the route?
2)how can i convert the route in points?
That's all...
Thanks for helping me
