Utilizes the Google maps functionality of the device.
directions
Get directions between two locations.
Syntax:
lg.maps.directions(obj);
Arguments:
- 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'});
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();
point
Point to a specified location on the map.
Syntax:
lg.maps.point(obj);
Arguments:
- obj – (object)
- latitude – (float) Latitude of point.
- longitude – (float) Longitude of point.
Example:
lg.maps.point({latitude:86.05, longitude:43.25});
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:
- str – (string) Address to search.
Example:
lg.maps.search({'Apple Store'});
