Thursday, May 05, 2011

Introducing the Distance Matrix?

A new Distance Matrix service has been added to the Google Maps API.

The Distance Matrix service allows you to display the travel distances and times between a number of locations. For example, the image below shows the walking times between different London Underground stations and important landmarks.



This example Google Map uses the Distance Matrix service to show the driving distances from Edinburgh to Stockholm and Prague and from Greenwich London to Stockholm and Prague.

For more information see the Maps API services documentation, and the Distance Matrix API web service documentation.

Via: Google Geo Developers Blog

________________

3 comments:

Gil said...

For this exemple : http://code.google.com/apis/maps/documentation/javascript/examples/distance-matrix.html, how to sort by distance ?

Exemple : www.sortir-au-theatre.com/?page=liste_theatre

I tried with sort() and i've had :http://www.sortir-au-theatre.com/?page=liste_theatres1

-> It doesn't work because it only sort the distance value ...

Keir Clarke said...

Gil,

Have you tried submitting your question to the Google Maps API Google Group?

http://groups.google.com/group/google-maps-js-api-v3

Gil said...

Yes but no answer to resolv my problem ...