Maps API for JavaScript Developer's Guide

H.places.Here

Class Summary

The Here endpoint answers the questions "Where am I?" and "What's right here where I am standing?" The search results consist of a list of places with addresses that lie within the vicinity of the search location. The feature is typically used by applications that include "check-in" or "click on map to get more information" options. For more visit 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 Here endpoint answers the questions "Where am I?" and "What's right here where I am standing?" The search results consist of a list of places with addresses that lie within the vicinity of the search location. The feature is typically used by applications that include "check-in" or "click on map to get more information" options. For more visit Places API documentation

Constructor Details

H.places.Here(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