EMS.Geocode

A geocoded object.  This is a wrapper around location data and a structured address.

Summary
EMS.GeocodeA geocoded object.
Properties
id{String} The id of the object.
address{EMS.Address}
granularity{EMS.Granularity}
approximated{Boolean}
centerPoint{OpenLayers.LonLat}
streetPoint{OpenLayers.LonLat}
bounds{OpenLayers.Bounds}
distance{Integer}
Constructor
EMS.Geocode
Functions
equals
clone{EMS.Geocode} Returns a clone of this geocode object.
toString{String} Returns a string representation of the geocoded object.

Properties

id

{String} The id of the object.

address

granularity

approximated

{Boolean}

centerPoint

streetPoint

distance

{Integer}

Constructor

EMS.Geocode

Parameters

geocode{Mixed} is either an EMS.Geocode or plain {Object} is the geocode object to wrap.

Functions

equals

equals: function(geocode)

Parameters

geocode{Mixed} is either an EMS.Geocode or {Object} to test for equality.

Returns

{Boolean} Returns true if the input geocode is equal to this geocoded object.

clone

clone: function()

Returns

{EMS.Geocode} Returns a clone of this geocode object.

toString

toString: function()

Returns

{String} Returns a string representation of the geocoded object.  This simply delegates to the address if set, it will return an empty string otherwise.

A structured address.
This class represents a longitude and latitude pair
Instances of this class represent bounding boxes.
equals: function(geocode)
clone: function()
{EMS.Geocode} Returns a clone of this geocode object.
toString: function()
{String} Returns a string representation of the geocoded object.
Close