A structured street.
| EMS. | A 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. | |
| Properties | |
| toString | {String} Returns a string form of the street. |
| equals | Tests for equivalence. |
| clone | {EMS.Street} Returns a copy/clone of the EMS.Street. |
// 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);| 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. |
Tests for equivalence.
| street | {Mixed} is either an EMS.Street or plain {Object} with object with name, type or suffix. |
{Boolean} true if the object given has the same name, type and suffix as this street.
{EMS.Street} Returns a copy/clone of the EMS.Street.