public class

GeoPointManager

extends Object
java.lang.Object
   ↳ com.vidinoti.android.vdarsdk.geopoint.GeoPointManager

Class Overview

Created by loic on 22/09/16.

Summary

Public Constructors
GeoPointManager()
Public Methods
static float computeDistanceBetweenGPSPoints(float lat1, float lon1, float lat2, float lon2)
Compute the distance between two GPS points
static List<VDARGPSPoint> getGPSPointsInBoundingBox(float minLat, float minLon, float maxLat, float maxLon)
Returns the GPS in the specified bounding box
static List<VDARGPSPoint> getNearbyGPSPoints(float myLat, float myLon)
Returns the nearby GPS points
static List<VDARGPSPoint> getNewNearbyGPSPoints(float myLat, float myLon, int detectionInterval, float detectionRadius)
Returns the new nearby GPS points.
static boolean isContainingGPSPoints()
Return YES if the app contain GPS points, NO otherwise
static void resetNewNearbyGPSPoints()
Resets the new nearby gps points, after calling that every gps point in range will be considered as new.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GeoPointManager ()

Public Methods

public static float computeDistanceBetweenGPSPoints (float lat1, float lon1, float lat2, float lon2)

Compute the distance between two GPS points

Parameters
lat1 latitude of point 1
lon1 longitude of point 1
lat2 latitude of point 2
lon2 longitude of point 2
Returns
  • the distance between two GPS points

public static List<VDARGPSPoint> getGPSPointsInBoundingBox (float minLat, float minLon, float maxLat, float maxLon)

Returns the GPS in the specified bounding box

Parameters
minLat latitude of the lower left corner
minLon longitude of the lower left corner
maxLat latitude of the uper right corner
maxLon longitude of the uper right corner
Returns
  • the list of nearby GPS points

public static List<VDARGPSPoint> getNearbyGPSPoints (float myLat, float myLon)

Returns the nearby GPS points

Parameters
myLat current latitude
myLon current longitude
Returns
  • the list of nearby GPS points

public static List<VDARGPSPoint> getNewNearbyGPSPoints (float myLat, float myLon, int detectionInterval, float detectionRadius)

Returns the new nearby GPS points.

Parameters
myLat current latitude
myLon current longitude
detectionInterval time before a point is considered new again
detectionRadius max detection radius
Returns
  • the list of new nearby GPS points

public static boolean isContainingGPSPoints ()

Return YES if the app contain GPS points, NO otherwise

Returns
  • YES if the app contain GPS points, NO otherwise

public static void resetNewNearbyGPSPoints ()

Resets the new nearby gps points, after calling that every gps point in range will be considered as new.