GPS.getActualPosition()

This method gets GPS last position information. It is equivalent to the AT$GPSACP command.

It has no input parameter.

The return value is a Python string which is the last position information formatted in the same way as for AT$GPSACP command response.

 

Example:

 

lastPosition = GPS.getActualPosition()

 

gets GPS last position information, assigning the return value to lastPosition.