Android API

The NEON Android API is an easy-to-use interface for communicating with the NEON Location Service. The NEON Location Service, along with a NEON Tracking Unit, can provide location updates, indoors and out, to any other application installed on an Android phone.

The Android API is subdivided into sections that allow a user to focus on the functionality that is required for their application:

  • The Location API has all the basic functionality needed to connect to the NEON Location Service, subscribe to locations and events, login, and upgrade software and firmware.
  • The Environment API allows the user to download buildings and floor plans created in our NEON Command Application. These buildings are used to locate and display users inside a building.
  • The Constraint API allows the user to add constraints to the NEON Location Service to improve location. This can be from a user checking-in at a location on a map, ranges to a custom ranging device, or GPS from an external source.
  • The Routing API allows the user to request route destinations in the area and route to them using your location.

For technical descriptions of the API functions, look at the documentation directly. For a tutorial that builds an application around the NEON Location Service, take a look at the Android API Tutorial.

The NEON API is hosted on our maven repository at https://trxsystems.bintray.com/maven. It should be added to the repositories section of your project’s gradle build file. The package name is com.trxsystems.neon:android-api and should be added to the dependencies section of your module’s gradle build file.

Here is an example of the required entry in the build.gradle for your project:

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://trxsystems.bintray.com/maven"
        }
    }
}

Here is an example of the required entry in the build.gradle for your module:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.trxsystems.neon:android-api:2.0.0'
}