Utilizes the Google maps functionality of the device.

 

directions

Get directions between two locations.


Syntax:

lg.maps.directions(obj);

Arguments:

  1. obj – (object)
    • from – (string) Address of starting location.
    • to – (string) Address of destination location.


Example:

lg.maps.directions({from:'321 W. Somewhere, Chicago, IL', to:'123 W. Somewhere, Chicago, IL'});

Back to Top

 

 

pinpoint

Use this feature after a the location of the device has been determined to pinpoint the location on the map.


Syntax:

lg.maps.pinpoint();

Back to Top

 

 

point

Point to a specified location on the map.


Syntax:

lg.maps.point(obj);

Arguments:

  1. obj – (object)
    • latitude – (float) Latitude of point.
    • longitude – (float) Longitude of point.


Example:

lg.maps.point({latitude:86.05, longitude:43.25});

Back to Top

 

 

search

Search for a location. If a location is retrieved, it will be used to find the closest results.


Syntax:

lg.maps.search(obj);

Arguments:

  1. str – (string) Address to search.


Example:

lg.maps.search({'Apple Store'});

Back to Top