Maps API for JavaScript Developer's Guide

H.places.model.ResultSet

Class Summary

ResultSet - wraps the Discover Result Set and adds auxiliary functions. For more information about Discover Result Set visit our Places API documentation

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

fetchNext (onResult, onError)

Function that follow next link. In case of large collections, next link leads to the next page of the collection. Presence of this function depends if the next parameter on resultSet exist.

fetchPrevious (onResult, onError)

Function that follow previous link. In case of large collections, previous link leads to the previous page of the collection. Presence of this function depends if the previous parameter on resultSet exist.

Class Description

ResultSet - wraps the Discover Result Set and adds auxiliary functions. For more information about Discover Result Set visit our Places API documentation

Constructor Details

H.places.model.ResultSet(resultSet, service)

Parameters:
 
resultSet:
{Object}
 
service:
{H.service.PlacesService}
 

Method Details

fetchNext (onResult, onError)

Function that follow next link. In case of large collections, next link leads to the next page of the collection. Presence of this function depends if the next parameter on resultSet exist.

Follow next link is a Ajax GET request.

Parameters:
 
onResult:
{Function}
 
callback that gets triggered with the full response of the next request.
onError:
{Function}
 
callback gets triggered in case of network errors or in case of invalid request

fetchPrevious (onResult, onError)

Function that follow previous link. In case of large collections, previous link leads to the previous page of the collection. Presence of this function depends if the previous parameter on resultSet exist.

Follow previous link is a Ajax GET request.

Parameters:
 
onResult:
{Function}
 
callback that gets triggered with the full response of the next request.
onError:
{Function}
 
callback gets triggered in case of network errors or in case of invalid request

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.