Place Searches  |  Maps JavaScript API  |  Google for Developers (original) (raw)

The Place Searches sample demonstrates how to use the[findPlaceFromQuery()](/maps/documentation/javascript/reference/places-service#PlacesService.findPlaceFromQuery)method to locate a place, and then create and add a marker for it to the map.

Read the documentation.

TypeScript

// This example requires the Places library. Include the libraries=places // parameter when you first load the API. For example: //