EMS.Detail

A locality detail object.  This is a wrapper around a localilty detail response.

Summary
EMS.DetailA locality detail object.
Constructor
EMS.DetailAdd the ability to produce an external format using the supplied formatter.
Functions
getDetailType{String} Returns the type of this detail.
getGeometry{<EMS.Geometry.MultiPolygon} Returns the multipolygon for this geometry.
getGeocode{<EMS.Geocode} Returns the geocode for this locality.
getAdjacent{[<EMS.Geocode]} Returns a list of geocodes for adjacent localities.
toString{String} Returns a string representation of this object

Constructor

EMS.Detail

Add the ability to produce an external format using the supplied formatter.

Parameters

detaila JSON detail data structure

Returns

{EMS.Detail} Returns a detail object

Functions

getDetailType

getDetailType:function()

Returns

{String} Returns the type of this detail.

getGeometry

getGeometry:function()

Returns

{<EMS.Geometry.MultiPolygon} Returns the multipolygon for this geometry.

getGeocode

getGeocode:function()

Returns

{<EMS.Geocode} Returns the geocode for this locality.

getAdjacent

getAdjacent: function()

Returns

{[<EMS.Geocode]} Returns a list of geocodes for adjacent localities.

toString

toString:function()

Returns

{String} Returns a string representation of this object

getDetailType:function()
{String} Returns the type of this detail.
getGeometry:function()
{<EMS.Geometry.MultiPolygon} Returns the multipolygon for this geometry.
getGeocode:function()
{<EMS.Geocode} Returns the geocode for this locality.
getAdjacent: function()
{[<EMS.Geocode]} Returns a list of geocodes for adjacent localities.
toString:function()
{String} Returns a string representation of this object
Add the ability to produce an external format using the supplied formatter.
Close