Show / Hide Table of Contents

Namespace Mapbox.Unity.Location

Classes

AbstractEditorLocationProvider

AbstractLocationProvider

AngleSmoothingAbstractBase

Base class for implementing different smoothing strategies

AngleSmoothingAverage

Simple averaging latest 'n' values.

AngleSmoothingEMA

Smooths angles via a exponential moving average (EMA).

https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average

https://stackoverflow.com/questions/8450020/calculate-exponential-moving-average-on-a-queue-in-c-sharp

AngleSmoothingLowPass

Smoothing via low pass filter

AngleSmoothingNoOp

Doesn't do any calculations. Just passes latest value through.

DeviceLocationProvider

The DeviceLocationProvider is responsible for providing real world location and heading data, served directly from native hardware and OS. This relies on Unity's LocationService for location and Compass for heading.

DeviceLocationProviderAndroidNative

EditorLocationProvider

The EditorLocationProvider is responsible for providing mock location and heading data for testing purposes in the Unity editor.

EditorLocationProviderLocationLog

The EditorLocationProvider is responsible for providing mock location data via log file collected with the 'LocationProvider' scene

KalmanLatLong

From SackOverflow: Smooth GPS data

https://stackoverflow.com/a/15657798

LocationArrayEditorLocationProvider

The EditorLocationProvider is responsible for providing mock location and heading data for testing purposes in the Unity editor.

LocationLogAbstractBase

Base class for reading/writing location logs

LocationLogReader

Parses location data and returns Location objects.

LocationLogWriter

Writes location data into Application.persistentDataPath

LocationProviderFactory

Singleton factory to allow easy access to various LocationProviders. This is meant to be attached to a game object.

MapboxLocationServiceMock

Class to mock Unity's location service Input.location

MapboxLocationServiceUnityWrapper

Wrap Unity's LocationService into MapboxLocationService

TransformLocationProvider

The TransformLocationProvider is responsible for providing mock location and heading data for testing purposes in the Unity editor. This is achieved by querying a Unity Transform every frame. You might use this to to update location based on a touched position, for example.

Structs

DeviceLocationProvider.DebuggingInEditor

Location

Location contains heading, latitude, longitude, accuracy and a timestamp.

MapboxLocationInfoMock

Wrapper to mock our 'Location' objects as Unity's 'LocationInfo'

MapboxLocationInfoUnityWrapper

Wrapper to use Unity's LocationInfo as MapboxLocationInfo

Interfaces

IAngleSmoothing

ILocationProvider

Implement ILocationProvider to send Heading and Location updates.

IMapboxLocationInfo

IMapboxLocationService

Enums

LocationLogAbstractBase.LogfileColumns

Back to top © 2017 Mapbox