Maps API for JavaScript Developer's Guide

H.places.Suggest

Class Summary

The Search Suggestions endpoint represents lists of suggested search terms related to a given (partial) search term and location context. This endpoint is used to help users to provide suggested search terms to the user while typing. For more visti Places API Documentation

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

request (params, headers, onResult, onError)

Executes request to endpoint.

Class Description

The Search Suggestions endpoint represents lists of suggested search terms related to a given (partial) search term and location context. This endpoint is used to help users to provide suggested search terms to the user while typing. For more visti Places API Documentation

Constructor Details

H.places.Suggest(service)

Parameters:
 
service:
{H.service.PlacesService}
 

Method Details

request (params, headers, onResult, onError)

Executes request to endpoint.

Parameters:
 
params:
{H.service.ServiceParameters}
 
encapsulates URL parameters to be sent to endpoint.
headers:
{Object}
 
required by the endpoint
onResult:
{Function}
 
callback that gets triggered with the full response of the request.
onError:
{Function}
 
callback gets triggered in case of network errors or in case of invalid request