User Location
The Magnet Max SDK provides an easy way for developers to upload user locations to Max location service. Developers can also retrieve a user's last-known location or location history from the Magnet Max service.
Update User Location
The current user location can be updated to Max service in real time or in batch mode.
- To update the current user location in real time:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- To upload user location changes in batch mode, see the example below. This is useful for tracking user location history:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Retrieve User Location
You can also retrieve both the last-known location of specified users, or get a user's location history.
- To get the last-known location of specified users:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- To get a user's location history, refer to the code example below.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX