Get Current Location

You can request a new location fix at any time with a requestLocation call. This call guarantees that the supplied location is no older than 60 seconds (default).

The returned location object will always include latitude, longitude, and timestamp. Additional geo-context fields can be verified with the isSet function.

mMomentsClient.requestLocation("anything", new LocationCallback<String>() {
@Override
public void handleLocation(String extra, Location loc) {
// Do something
}
});

If you do not need up to the minute freshness of location, you can also call bestKnownLocation which instantly returns the most recent location fix.

//Note: May return null
mMomentsClient.getBestKnownLocation();

Questions?

We are eager to hear from you and happy to share best practices for integrating the SDK. There are many ways for you to reach us:

But first, please sign up for an account with LOTaDATA so that we may send you the link to download our SDK.