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
findById

Constructor

EMS.Service.Details

Functions

findById

findById: 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}.
callback{Function} is the callback function in the form function(result, status).

For further information about request objects in the detail service, read the API user documentation

/EMS/Get+Detail+Services

findById: function(query,
callback)
Suggest service is used to take a small fragment of text and suggest an address.
Close