Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains methods related to searching for places and retrieving details about a place.

Access by calling const {PlacesService} = await google.maps.importLibrary("places"). See https://developers.google.com/maps/documentation/javascript/libraries.

Hierarchy

  • PlacesService

Index

Constructors

Methods

  • Retrieves a list of places based on a query string (for example, "pizza in New York", or "shoe stores near Ottawa"). Location parameters are optional; when the location is specified, results are only biased toward nearby results rather than restricted to places inside the area. Use textSearch when you want to search for places using an arbitrary string, and in cases where you may not want to restrict search results to a particular location. The PlaceSearchPagination object can be used to fetch additional pages of results (null if this is the last page of results or if there is only one page of results).

    Parameters

    Returns void

Generated using TypeDoc