On Jul 8, 11:10 am, sameer hassan <[email protected]>
wrote:
> I retrieve the Latitude and Longitude from mysql database and
> i need to calculate the real  road distance between the two Points
> right now i am doing it simply by using the following code

Your code looks rather like Java. To use the API for road distances
requires GDirections, which must be Javascript and run in a browser --
there is no server-side or HTTP implementation. There may be other
resources you can use server-side; have a look in the Pages section in
the Group for lists.

You could get a more accurate straight-line distance by using the
haversine formula rather than Pythagoras [Google for "haversine
formula"]

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to