EMS.Service.Details

EMS.Service.Details is used to get information about a geocoded object by id.  This goes hand in hand with the EMS.Service.Suggest service.  Also this might be used if you wish to store just the id and retrieve the details through this service.

Summary
EMS.Service.DetailsEMS.Service.Details is used to get information about a geocoded object by id.
Constructor
EMS.Service.Details
Functions
find

Constructor

EMS.Service.Details

Functions

find

find: function(query,
callback)

Example

var service = new EMS.Service.Details();
service.find("suburb-12345", function(response, status) {
    if (status == EMS.Status.OK) {
        // Success, do something constructive with the response
    } else if (status == EMS.Status.NOT_FOUND) {
        // Not found, possibly removed
        alert("Item was not found");
    } else {
        // Failure, some other error
        alert(response.message);
    }
});

Parameters

query{Mixed} is either a {String} id of the item to find or an {Object} wrapping the id.
callback{Function} is the callback function in the form function(result, status).
find: function(query,
callback)
Suggest service is used to take a small fragment of text and suggest an address.
Close