Chapter 7. Working with Services

In this chapter, we will cover:

  • Finding coordinates for an address
  • Finding addresses on a map with a click
  • Getting elevations on a map with a click
  • Creating a distance matrix for the given locations
  • Getting directions for the given locations
  • Adding Street View to your maps

Introduction

This chapter focuses on the various services offered by the Google Maps JavaScript API. These services add significant functionality that largely differentiates Google Maps from its competitors. The reliability and the quality of the underlying data makes these services even more appreciated, as this allows applications making use of Google Maps to provide added functionalities.

These services generally follow an asynchronous pattern in which ...

Get Google Maps JavaScript API Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.