0

I am new with Google Map API. Now I have created bellow script to display direction from one location to another in Google map.

Now I want to get distance in miles and kilometers

I will appreciate if someone will help me.

My Current Code Fiddle is: My Google Map

Thanks :)

Kara
  • 6,115
  • 16
  • 50
  • 57
Mr.Happy
  • 2,639
  • 9
  • 40
  • 73
  • Did you look at the [documentation](https://developers.google.com/maps/documentation/javascript/directions)? What have you tried? What difficulty are you having doing that? – geocodezip Dec 19 '13 at 05:24

1 Answers1

1

Ok, so maybe you might trace a route https://developers.google.com/maps/documentation/javascript/services?hl=es&csw=1#Directions

But exists a similar reference it was published in a previous article Google Maps API V3 : How show the direction from a point A to point B (Blue line)?

Good luck !

Community
  • 1
  • 1
joseluisq
  • 508
  • 1
  • 7
  • 19
  • Hey, in addition you can try to use a jquery plugin to help with the Google Maps usage http://gmap3.net/en/catalog/14-services/getroute-53 Good night ;) – joseluisq Dec 19 '13 at 05:20