find the google map distance between two points in V3

89 views
Skip to first unread message

Aiswarya krishna

unread,
Feb 15, 2011, 1:12:21 AM2/15/11
to Google Maps JavaScript API v3
hi friends,


i want to find the google map distance between
two points in V3.
I tried
var dist = startLocation .distanceFrom(endLocation);. in V2.i GOT .But
can anybody tell me how will i find google map distance between two
points in V3 with out drawing the route.I dont want to draw the
Route.I used directionsService.But I dont want to draw the route.

geoco...@gmail.com

unread,
Feb 15, 2011, 1:28:43 AM2/15/11
to Google Maps JavaScript API v3
The distance functions in v3 are in the geometry library:
http://code.google.com/apis/maps/documentation/javascript/geometry.html

-- Larry

Luke Mahé

unread,
Feb 15, 2011, 1:33:07 AM2/15/11
to google-map...@googlegroups.com, Aiswarya krishna
Hi,

Have a look at the geometry library http://code.google.com/apis/maps/documentation/javascript/geometry.html it has a function computeDistanceBetween which should help :)

-- Luke



--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply all
Reply to author
Forward
0 new messages