locationEngine

Navigation needs an instance of location engine in order to acquire user location information and handle events based off of the current information. By default, a LOST location engine is created with the optimal navigation settings.

Although it is not required to set your location engine to these parameters, these values are what we found works best. Note that this also depends on which underlying location service you are using. Reference the corresponding location service documentation for more information and way's you could improve the performance.

An ideal conditions, the Navigation SDK will receive location updates once every second with mild to high horizontal accuracy. The location update must also contain all information an Android location object would expect including bearing, speed, timestamp, and latitude/longitude.

Listed below are the ideal conditions for both a LOST location engine and a Google Play Services Location engine.

  • Set the location priority to HIGH_ACCURACY.

  • The fastest interval should be set around 1 second (1000ms). Note that the interval isn't a guaranteed to match this value exactly and is only an estimate.

  • Setting the location engine interval to 0 will result in location updates occurring as quickly as possible within the fastest interval limit placed on it.