... the user friendly GPS tool


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to start
#5
ok. I've created my own java project, and using Bearing i'm able to calculate geodedic distance between 2 point

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");
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
Reply


Messages In This Thread
How to start - by campioncino - 19.11.2012, 11:51
RE: How to start - by routeconverter - 19.11.2012, 14:35
RE: How to start - by campioncino - 19.11.2012, 20:07
RE: How to start - by routeconverter - 20.11.2012, 18:33
RE: How to start - by campioncino - 21.11.2012, 01:05
RE: How to start - by routeconverter - 21.11.2012, 13:29
RE: How to start - by campioncino - 21.11.2012, 15:20
RE: How to start - by routeconverter - 21.11.2012, 16:29
RE: How to start - by campioncino - 22.11.2012, 02:09
RE: How to start - by campioncino - 23.11.2012, 04:13
RE: How to start - by routeconverter - 23.11.2012, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)