ALKMaps.Location

Instances of this class represent location.

Possible use case

location = new ALKMaps.Location({
    address: new ALKMaps.Address({streetAddress: "", city: "", state: "", zip: "", country: ""}),
    lonLat: new ALKMaps.LonLat(-90, 42),
    label: "Stop 1"
});
Summary
ALKMaps.LocationInstances of this class represent location.
Properties
address{ALKMaps.Address} Gets or sets the address information for the location.
lonLat{ALKMaps.LonLat} Gets or sets the geographic coordinates for the location.
Constructor
ALKMaps.LocationConstruct a new location object.
Functions
fromLonLatAlternative constructor that builds a new ALKMaps.Location from lonLat object
fromLonLatsBuilds an array of location objects from an array of lonLat object.

Properties

address

{ALKMaps.Address} Gets or sets the address information for the location.

lonLat

{ALKMaps.LonLat} Gets or sets the geographic coordinates for the location.

Constructor

ALKMaps.Location

Construct a new location object.

Parameters (single argument)

params{Object} {address: {}, {}: null, label: “”}

Functions

fromLonLat

ALKMaps.Location.fromLonLat = function (lonLat,
options)

Alternative constructor that builds a new ALKMaps.Location from lonLat object

Parameters

lonLat{ALKMaps.LonLat}

Returns

{ALKMaps.Location} New location object built from the passed-in object.

fromLonLats

ALKMaps.Location.fromLonLats = function (lonLats,
options)

Builds an array of location objects from an array of lonLat object.

ALKMaps.Location.fromLonLat = function (lonLat,
options)
Alternative constructor that builds a new ALKMaps.Location from lonLat object
ALKMaps.Location.fromLonLats = function (lonLats,
options)
Builds an array of location objects from an array of lonLat object.
This class represents a longitude and latitude pair
Construct a new location object.
Close