O'Reilly logo

Google Maps JavaScript API Cookbook by Balkan Uraz, Alper Dincer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting directions for the given locations

Having directions between two or more locations has always been a favorite among users, car drivers, tourists, and so on. The need for navigation products either for driving, walking, or any other transit options is qualified by the sales of these products.

A good Directions service would need comprehensive road data with several attributes filled in such as the direction of traffic flow, turn restrictions, bridges, and underground tunnels. Hopefully, Google Maps has this data in the background; therefore, it is very natural for Google to include this functionality in Google Maps.

In Google Maps, directions is perhaps one of the most used features. It is also included in the Google Maps JavaScript API, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required