Namespace nokia.places.search.manager
Namespace Summary
The namespace nokia.places.search.manager defines functions that allow you to use the
Places search service to search for places and to obtain search suggestions.
Searches for places can be viewed as a preliminary step to selecting a particular
place for which to retrieve detailed information, using the functions defined on
nokia.places.manager.
Method Summary
findPlaces
(params)
This function searches for places on the basis of the parameters specified by the caller.
findRecommendations
(params)
This function retrieves recommendations for the location indicated by the caller.
geoCode
(params)
This method runs a geocoding query based on the arguments provided by the caller.
reverseGeoCode
(params)
This method runs a reverse geocoding query based on the coordinates provided by the caller.
suggestPlaces
(params)
This function retrieves suggestions that can be used with
nokia.places.placesManager.findPlaces().
Field Summary
static
findPlacesByCategory
This function searches for places by category.
Method Detail
findPlaces
(params)
This function searches for places on the basis of the parameters specified by the caller.
Parameters:
| {Object} | params |
An object containing a number of parameters that define a search request:
|
Returns:
The return value is made available asynchronously as
arguments passed to the onComplete handler; the responseData argument
contains a response view (nokia.places.objects.SearchResponseView). Directly function also returns a number which is the
request ID and can be used to cancel/abort the current request with nokia.places.comm.data.abortRequest
|
findRecommendations
(params)
This function retrieves recommendations for the location indicated by the caller.
Parameters:
| {Object} | params |
An object containing request parameters:
|
Returns:
The return value is made available asynchronously as
arguments passed to the onComplete handler; the responseData argument
contains a response view, which is an instance of nokia.places.objects.SearchResponseView. Directly function also returns a number which is the
request ID and can be used to cancel/abort the current request with nokia.places.comm.data.abortRequest
|
geoCode
(params)
This method runs a geocoding query based on the arguments provided by the caller.
Parameters:
| {Object} | params |
an object containing:
|
Returns:
The return value is made available asynchronously as
arguments passed to the onComplete handler; when status is 'OK', the argument
responseData contains a place object, which is an instance of
nokia.places.objects.Place. Directly function also returns a number which is the
request ID and can be used to cancel/abort the current request with nokia.places.comm.data.abortRequest
|
reverseGeoCode
(params)
This method runs a reverse geocoding query based on the coordinates provided by the caller. A default radius is applied.
Parameters:
| {Object} | params |
an object containing the coordinates to be used in a reverse geocoding query:
|
Returns:
The return value is made available asynchronously as
arguments passed to the onComplete handler; when status is 'OK', the argument
responseData contains a place object, which is an instance of
nokia.places.objects.Place. Directly function also returns a number which is the
request ID and can be used to cancel/abort the current request with nokia.places.comm.data.abortRequest
|
suggestPlaces
(params)
This function retrieves suggestions that can be used with
nokia.places.placesManager.findPlaces().
Parameters:
| {Object} | params |
An object containing parameters that define a request for suggestions:
|
Returns:
The return value is made available asynchronously via the argument responseData
passed to the handler function onComplete as a response view object
(nokia.places.objects.SearchResponseView). Directly function also returns a number which is the
request ID and can be used to cancel/abort the current request with nokia.places.comm.data.abortRequest
|
