You can't get an address directly from the map, but you can get a GeoCoordinate using map.pixelToGeo() and then do a reverseGeoCode() lookup. First create your event handler as shown:
Code:
var processResults = function (data, requestStatus, requestId) {
if (requestStatus == "OK") {
console.log (data.location.address);
} else if(requestStatus == "ERROR") {
alert("SEARCH FAILED");
}
};
Then within the event you have generated pick up the geoCoordinate you are interested in:
Code:
var clicked_location = map.pixelToGeo(event.displayX, event.displayY);
nokia.places.search.manager.reverseGeoCode({
latitude: clicked_location.latitude,
longitude: clicked_location.longitude,
onComplete: processResults
});
You may also want to look at using the ContextMenu, which typically displays an address.
http://api.maps.nokia.com/en/playgro...le_contextmenu
http://api.maps.nokia.com/en/apirefe...ntextMenu.html