Maps API for JavaScript Developer's Guide

H.places.Categories

Class Summary

Categories endpoint is used to obtain the place categories available for a given location. The Place Categories endpoint represents sets of locally relevant categories that are organized in a directed acyclic graph. The category graph may change in the future and may differ depending on the location of the request. 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

Categories endpoint is used to obtain the place categories available for a given location. The Place Categories endpoint represents sets of locally relevant categories that are organized in a directed acyclic graph. The category graph may change in the future and may differ depending on the location of the request. For more visti Places API documentation

Constructor Details

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