Reference
Address
Constructor
| Constructor |
Description |
| Address(addressLine:String, locality:String, postalCode:String, subRegion:String, region:String, country:String) |
Creates a new Address object. |
Properties
| Property |
Type |
Description |
| AddressLine |
String |
The street part of the address, e.g. 110 Pacific Highway. |
| Locality |
String |
The locality part of the address, e.g. Greenwich. |
| PostalCode |
String |
The postal code part of the address, e.g. 2065. |
| SubRegion |
String |
The sub region part of the address. |
| Region |
String |
The region part of the address, e.g. NSW. |
| Country |
String |
The country part of the address, e.g. Australia. |
Bounds
Constructor
| Constructor |
Description |
| Bounds(left, bottom, right, top) |
Creates a new Bounds object. left, bottom, right, top MUST all be numbers. |
Methods
| Method |
Description |
| toString() |
Returns a string representation of the object. |
Properties
| Property |
Type |
Description |
| Left |
Number |
Returns the left value of the bounds. |
| Bottom |
Number |
Returns the bottom value of the bounds. |
| Right |
Number |
Returns the right value of the bounds. |
| Top |
Number |
Returns the top value of the bounds. |
LatLng
LatLng is a point in geographical coordinates longitude and latitude.
Usually the longitude is associated with the x coordinate of a map and the latitude with the y. LatLng adheres to coordinate ordering as used in cartography, that is the latitude appears before the longitude.
Once you create a LatLng point the coordinates cannot be modified, if you need to change them then you will have to delete the point and create a new one.
Constructor
| Constructor |
Description |
| LatLng(lat, lng) |
Please note the ordering of latitude and longitude. Latitude should be a value between -90 and +90, Longitude should be between a value -180 and +180. |
Methods
| Method |
Description |
| equals(latlng) |
Returns true if latlng matches the current instance. latlng MUST be an instance of LatLng. |
| toString() |
Returns a string representation of the object. |
Properties
| Property |
Type |
Description |
| Latitude |
Number |
Returns the latitude coordinate in degrees. This should be a number between -90 and +90. |
| Longitude |
Number |
Returns the longitude coordinate in degrees. This should be a number between -180 and +180. |
Size
Size is an object that is used to represent dimensions of something.
Constructor
| Constructor |
Description |
| Size(w, h) |
Creates a new Size object. W and H MUST be numbers. |
Methods
| Method |
Description |
| equals(size) |
Returns true if size matches the current instance. size MUST be an instance of Size. |
| toString() |
Returns a string representation of the object. |
Properties
| Property |
Type |
Description |
| Width |
Number |
Returns the width of the object. |
| Height |
Number |
Returns the height of the object. |
Pixel
Pixel is an object ...
Constructor
| Constructor |
Description |
| Pixel(x, y) |
Creates a new pixel object. X and Y MUST be numbers. |
Methods
| Method |
Description |
| equals(pixel) |
Returns true if pixel matches the current instance. pixel MUST be an instance of Pixel. |
| toString() |
Returns a string representation of the object. |
Properties
| Property |
Type |
Description |
| X |
Number |
Returns the X of the object. |
| Y |
Number |
Returns the Y of the object. |