This method gets GPS last position stored in numeric format.
It has no input parameter.
The return value is a Python tuple formatted in the following way:
(latitude, latNorS, longitude, lonEorW)
where:
the first element of tuple latitude is a Python integer which is latitude in (degrees * 10000000), that is in degrees with 10000000 scale factor
the second element of tuple latNorS is a Python string which is ‘N’ for north or ‘S’ for south
the third element of tuple longitude is a Python integer which is longitude in (degrees * 10000000), that is in degrees with 10000000 scale factor
fourth element of tuple lonEorW is a Python string which is ‘E’ for east or ‘W’ for west.
If GPS controller has no position information the following tuple will be returned:
(0, '', 0, '').
This method is available only for product versions from 12.00.xx6 and from 13.00.xx7.
Example:
pos = GPS.getPosition()
gets last position stored, assigning the return value to pos.