If you want to combine indoor positioning with GPS positioning (outdoor) you can use the indoor-positioning library as well.
Here you can see an implementation of GPS technology, which will notify if a persisted position is in a defined range to the current GPS position.
It also checks if the GPS signal is new enough.
You can add this technology to the positioning manager with a single line of code:
positionManager.addTechnology(new GpsTechnology(this, "GPS", 5, 3000, 1));
3. parameter: radius of each persisted position (in meters)
4. parameter: minimum time interval between location updates (in milliseconds)
5. parameter: minimum distance between location updates (in meters)
Add the following class to your technology package: