EMS.Street

A structured street.

Summary
EMS.StreetA structured street.
Properties
name{String} The name of the street.
type{String} The type of the street, for example “RD” for road.
suffix{String} The street suffix, for example “N” for north.
Constructor
EMS.Street
Properties
toString{String} Returns a string form of the street.
equalsTests for equivalence.
clone{EMS.Street} Returns a copy/clone of the EMS.Street.

Properties

name

{String} The name of the street.

type

{String} The type of the street, for example “RD” for road.

suffix

{String} The street suffix, for example “N” for north.

Constructor

EMS.Street

Examples

// Create with three string parameters
var one = new EMS.Street("Lonsdale", "St", "N");

// Create using an object
var two = new EMS.Street({"name": "Lonsdale", "type": "St", "suffix": "N"});

// Copy an existing EMS.Street
var three = new EMS.Street(two);

Parameters

street{Mixed} This maybe a single {Object} or another EMS.Street with a name, type and suffix or upto 3 strings representing the name, type and suffix respectively.  Also this maybe left as null for an empty street.

Properties

toString

Returns

{String} Returns a string form of the street.  If no property has been set then this will return an empty string.  For non empty results, this will be in capitalized form such as “Lonsdale St N”

equals

Tests for equivalence.

Parameters

street{Mixed} is either an EMS.Street or plain {Object} with object with name, type or suffix.

Returns

{Boolean} true if the object given has the same name, type and suffix as this street.

clone

Returns

{EMS.Street} Returns a copy/clone of the EMS.Street.

Close