The namespace placesManager defines functions that communicate with
the Places server to get and post place-related data. The functions
require a place id that can be obtained by performing
searches via nokia.places.searchManager.
getMedia
(params)
|
This function retrieves images for place. |
getPlaceData
(params)
|
This function retrieves place data for the given place id. |
getRating
(params)
|
This function retrieves place ratings for the given place id. |
getReviews
(params)
|
This function retrieves reviews for the given place id. |
postRating
(params)
|
This function posts rating for a given place. |
getMedia
(params)
params
responseData and
status described under Returns belowonComplete handler
and it is a list (nokia.places.objects.List) of elements of the type
nokia.places.objects.Media; onComplete's second argument is status,
a {String} constant with the value of 'ok' to indicate success or
'error' to indicate request failure or time-out
getPlaceData
(params)
params
responseData, which is a place object
nokia.places.objects.Place containing data returned by the Places back-end, and
status, which is a {String} constant with the value of 'ok' to indicate success or
'error' to indicate request failure or time-outtrue only place core data are returned,
otherwise all available data are returned, optionalonComplete handler
and it is a place object nokia.places.objects.Place; note that onComplete
also receives a second argument indicating the status of the request (see also description
of onComplete under getPlaceData() Parameters above)
getRating
(params)
params
responseData and status described
under Returns belowonComplete handler
and it is a rating object, for example, {value:4,count: 120}
(see also nokia.places.objects.Review); onComplete also receives a second argument,
status, which is a {String} constant with the value of 'ok' to indicate success or
'error' to indicate request failure or time-out
getReviews
(params)
params
responseData and
status described under Returns belowonComplete handler
and it is a list (nokia.places.objects.List) of elements of the type
nokia.places.objects.Review; onComplete also receives a second argument,
status, which is a {String} constant with the value of 'ok' to indicate success or
'error' to indicate request failure or time-out
postRating
(params)
params
responseData and
status described under Returns belowonComplete handler
and it is a rating object containing the calculated rating for a place, for example, {value:4,count: 120}
(see also nokia.places.objects.Review); onComplete also receives a second argument,
status, which is a {String} constant with the value of 'ok' to indicate success or
'error' to indicate request failure or time-out
Copyright © 2011 Nokia. All rights reserved. Terms and Conditions