Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


The API uses the following trilateration library (; MIT Licenced). This relies on the org.apache.commons.math3 library to work (, so you need to include this library in your project.

Please note that this is a proof of concept demonstator that implements the SubPos standard ( and a method of trilateration, but work is being made to make this more robust and configurable. Please feel free to suggest any additions or fixes.

To use this API, all you need to do is call:

public class yourClass extends Activity {
    SubPos subpos;
    public void onCreate(Bundle savedInstanceState) {

        //Create new SubPos service
        subpos = new SubPos(this); //"this" passes the context

To get your position:

SubPosPosition position = subpos.getPosition(); //returns null if position is not calculated