Package mil.nga.geopackage.map
Class MapUtils
java.lang.Object
mil.nga.geopackage.map.MapUtils
Map utilities
- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BoundingBox
buildClickBoundingBox
(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, zoom level, pixel bounds, map view, map, and screen percentage tolerance.static BoundingBox
buildClickBoundingBox
(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, display density, zoom level, pixel bounds, map view, map, and screen percentage tolerance.static BoundingBox
buildClickBoundingBox
(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, map view, map, and screen percentage tolerance.static BoundingBox
buildClickBoundingBox
(LatLng latLng, BoundingBox mapBounds, float screenClickPercentage) Build a bounding box using the location coordinate click location and map view boundsstatic BoundingBox
buildClickBoundingBox
(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, pixel bounds, map view, map, and screen percentage tolerance.static BoundingBox
buildClickBoundingBox
(LatLngBoundingBox boundingBox) Build a bounding box using the click locationstatic LatLngBoundingBox
buildClickLatLngBoundingBox
(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, zoom level, pixel bounds, map view, map, and screen percentage tolerance.static LatLngBoundingBox
buildClickLatLngBoundingBox
(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, display density, zoom level, pixel bounds, map view, map, and screen percentage tolerance.static LatLngBoundingBox
buildClickLatLngBoundingBox
(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, map view, map, and screen percentage tolerance.static LatLngBoundingBox
buildClickLatLngBoundingBox
(LatLng latLng, BoundingBox mapBounds, float screenClickPercentage) Build a bounding box using the location coordinate click location and map view boundsstatic LatLngBoundingBox
buildClickLatLngBoundingBox
(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, pixel bounds, map view, map, and screen percentage tolerance.static LatLngBounds
buildClickLatLngBounds
(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, zoom level, pixel bounds, map view, map, and screen percentage tolerance.static LatLngBounds
buildClickLatLngBounds
(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, display density, zoom level, pixel bounds, map view, map, and screen percentage tolerance.static LatLngBounds
buildClickLatLngBounds
(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, map view, map, and screen percentage tolerance.static LatLngBounds
buildClickLatLngBounds
(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, pixel bounds, map view, map, and screen percentage tolerance.static BoundingBox
getBoundingBox
(GoogleMap map) Get the WGS84 bounding box of the current map view screen.static float
getCurrentZoom
(GoogleMap map) Get the current zoom level of the mapstatic double
getToleranceDistance
(int viewWidth, int viewHeight, GoogleMap map) Get the tolerance distance meters in the current region of the visible map.static double
getToleranceDistance
(int viewWidth, int viewHeight, BoundingBox boundingBox) Get the tolerance distance meters in the current region of the visible map bounds.static double
getToleranceDistance
(int viewWidth, int viewHeight, BoundingBox boundingBox, Projection projection) Get the tolerance distance meters in the current region of the visible map projected bounds.static double
getToleranceDistance
(View view, GoogleMap map) Get the tolerance distance meters in the current region of the visible map.static double
getToleranceDistance
(View view, BoundingBox boundingBox) Get the tolerance distance meters in the current region of the visible map bounds.static double
getToleranceDistance
(View view, BoundingBox boundingBox, Projection projection) Get the tolerance distance meters in the current region of the visible map projected bounds.static double
getToleranceDistance
(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.static double
getToleranceDistance
(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.static double
getToleranceDistance
(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.static double
getToleranceDistance
(LatLng latLng, LatLngBoundingBox boundingBox) Get the allowable tolerance distance in meters from the click bounding boxstatic double
getToleranceDistance
(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.static double
getToleranceDistance
(LatLngBoundingBox boundingBox) Get the allowable tolerance distance in meters from the click bounding boxstatic BoundingBox
getWGS84BoundingBox
(BoundingBox boundingBox, Projection projection) Get a WGS84 Bounding Box from a projected bounding boxstatic boolean
isPointNearMarker
(LatLng point, MarkerOptions shapeMarker, double tolerance) Is the point near the shape markerstatic Double
isPointNearMarkerDistance
(LatLng point, MarkerOptions shapeMarker, double tolerance) Is the point near the shape marker, returning the distance when on markerstatic boolean
isPointNearMultiLatLng
(LatLng point, MultiLatLng multiLatLng, double tolerance) Is the point near any points in the multi lat lngstatic Double
isPointNearMultiLatLngDistance
(LatLng point, MultiLatLng multiLatLng, double tolerance) Is the point near any points in the multi lat lng, returning the nearest distance when on multi lat lngstatic boolean
isPointNearPoint
(LatLng point, LatLng shapePoint, double tolerance) Is the point near the shape pointstatic Double
isPointNearPointDistance
(LatLng point, LatLng shapePoint, double tolerance) Is the point near the shape point, returning the distance when on pointstatic boolean
isPointOnMultiPolygon
(LatLng point, MultiPolygonOptions multiPolygon, boolean geodesic, double tolerance) Is the point on the multi polygonstatic boolean
isPointOnMultiPolyline
(LatLng point, MultiPolylineOptions multiPolyline, boolean geodesic, double tolerance) Is the point on the multi polylinestatic boolean
isPointOnPolygon
(LatLng point, PolygonOptions polygon, boolean geodesic, double tolerance) Is the point of the polygonstatic boolean
isPointOnPolyline
(LatLng point, PolylineOptions polyline, boolean geodesic, double tolerance) Is the point on the polylinestatic boolean
isPointOnShape
(LatLng point, GoogleMapShape shape, boolean geodesic, double tolerance) Is the point on or near the shapestatic Double
isPointOnShapeDistance
(LatLng point, GoogleMapShape shape, boolean geodesic, double tolerance) Is the point on or near the shape, returning the distance when on the shape
-
Constructor Details
-
MapUtils
public MapUtils()
-
-
Method Details
-
getCurrentZoom
Get the current zoom level of the map- Parameters:
map
- google map- Returns:
- current zoom level
-
getToleranceDistance
Get the tolerance distance meters in the current region of the visible map. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.- Parameters:
view
- viewmap
- google map- Returns:
- tolerance distance in meters
-
getToleranceDistance
public static double getToleranceDistance(View view, BoundingBox boundingBox, Projection projection) Get the tolerance distance meters in the current region of the visible map projected bounds. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.- Parameters:
view
- viewboundingBox
- bounding boxprojection
- bounding box projection- Returns:
- tolerance distance in meters
- Since:
- 6.3.1
-
getToleranceDistance
Get the tolerance distance meters in the current region of the visible map bounds. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.- Parameters:
view
- viewboundingBox
- WGS84 bounding box- Returns:
- tolerance distance in meters
- Since:
- 6.3.1
-
getToleranceDistance
Get the tolerance distance meters in the current region of the visible map. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.- Parameters:
viewWidth
- view widthviewHeight
- view heightmap
- google map- Returns:
- tolerance distance in meters
- Since:
- 6.3.1
-
getToleranceDistance
public static double getToleranceDistance(int viewWidth, int viewHeight, BoundingBox boundingBox, Projection projection) Get the tolerance distance meters in the current region of the visible map projected bounds. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.- Parameters:
viewWidth
- view widthviewHeight
- view heightboundingBox
- bounding boxprojection
- bounding box projection- Returns:
- tolerance distance in meters
- Since:
- 6.3.1
-
getToleranceDistance
Get the tolerance distance meters in the current region of the visible map bounds. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.- Parameters:
viewWidth
- view widthviewHeight
- view heightboundingBox
- WGS84 bounding box- Returns:
- tolerance distance in meters
- Since:
- 6.3.1
-
getWGS84BoundingBox
Get a WGS84 Bounding Box from a projected bounding box- Parameters:
boundingBox
- bounding boxprojection
- bounding box projection- Returns:
- WGS84 bounding box
- Since:
- 6.3.1
-
getBoundingBox
Get the WGS84 bounding box of the current map view screen. The max longitude will be larger than the min resulting in values larger than 180.0.- Parameters:
map
- google map- Returns:
- current bounding box
-
buildClickBoundingBox
public static BoundingBox buildClickBoundingBox(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
-
buildClickBoundingBox
public static BoundingBox buildClickBoundingBox(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationpixelBounds
- click pixel boundsview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
buildClickBoundingBox
public static BoundingBox buildClickBoundingBox(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, zoom level, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationzoom
- current zoom levelpixelBounds
- click pixel boundsview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
buildClickBoundingBox
public static BoundingBox buildClickBoundingBox(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a bounding box using the click location, display density, zoom level, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationdensity
- display density:DisplayMetrics.density
zoom
- current zoom levelpixelBounds
- click pixel boundsview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
buildClickBoundingBox
Build a bounding box using the click location- Parameters:
boundingBox
- click bounding box- Returns:
- bounding box
- Since:
- 6.3.0
-
buildClickLatLngBounds
public static LatLngBounds buildClickLatLngBounds(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
-
buildClickLatLngBounds
public static LatLngBounds buildClickLatLngBounds(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationpixelBounds
- click pixel boundsview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
buildClickLatLngBounds
public static LatLngBounds buildClickLatLngBounds(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, zoom level, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationzoom
- current zoom levelpixelBounds
- click pixel boundsview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
buildClickLatLngBounds
public static LatLngBounds buildClickLatLngBounds(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounds using the click location, display density, zoom level, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationdensity
- display density:DisplayMetrics.density
zoom
- current zoom levelpixelBounds
- click pixel boundsview
- viewmap
- Google mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
getToleranceDistance
public static double getToleranceDistance(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.- Parameters:
latLng
- click locationview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- tolerance distance in meters
-
getToleranceDistance
public static double getToleranceDistance(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.- Parameters:
latLng
- click locationpixelBounds
- click pixel boundsview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- tolerance distance in meters
- Since:
- 6.3.0
-
getToleranceDistance
public static double getToleranceDistance(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.- Parameters:
latLng
- click locationzoom
- current zoom levelpixelBounds
- click pixel boundsview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- tolerance distance in meters
- Since:
- 6.3.0
-
getToleranceDistance
public static double getToleranceDistance(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.- Parameters:
latLng
- click locationdensity
- display density:DisplayMetrics.density
zoom
- current zoom levelpixelBounds
- click pixel boundsview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- tolerance distance in meters
- Since:
- 6.3.0
-
getToleranceDistance
Get the allowable tolerance distance in meters from the click bounding box- Parameters:
latLng
- click locationboundingBox
- click bounding box- Returns:
- tolerance distance in meters
- Since:
- 6.3.0
-
getToleranceDistance
Get the allowable tolerance distance in meters from the click bounding box- Parameters:
boundingBox
- click bounding box- Returns:
- tolerance distance in meters
- Since:
- 6.3.0
-
buildClickLatLngBoundingBox
public static LatLngBoundingBox buildClickLatLngBoundingBox(LatLng latLng, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- lat lng bounding box
-
buildClickLatLngBoundingBox
public static LatLngBoundingBox buildClickLatLngBoundingBox(LatLng latLng, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationpixelBounds
- click pixel boundsview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- lat lng bounding box
- Since:
- 6.3.0
-
buildClickLatLngBoundingBox
public static LatLngBoundingBox buildClickLatLngBoundingBox(LatLng latLng, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, zoom level, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationzoom
- current zoom levelpixelBounds
- click pixel boundsview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- lat lng bounding box
- Since:
- 6.3.0
-
buildClickLatLngBoundingBox
public static LatLngBoundingBox buildClickLatLngBoundingBox(LatLng latLng, float density, double zoom, PixelBounds pixelBounds, View view, GoogleMap map, float screenClickPercentage) Build a lat lng bounding box using the click location, display density, zoom level, pixel bounds, map view, map, and screen percentage tolerance. The bounding box can be used to query for features that were clicked- Parameters:
latLng
- click locationdensity
- display density:DisplayMetrics.density
zoom
- current zoom levelpixelBounds
- click pixel boundsview
- map viewmap
- mapscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- lat lng bounding box
- Since:
- 6.3.0
-
buildClickLatLngBoundingBox
public static LatLngBoundingBox buildClickLatLngBoundingBox(LatLng latLng, BoundingBox mapBounds, float screenClickPercentage) Build a bounding box using the location coordinate click location and map view bounds- Parameters:
latLng
- click locationmapBounds
- map boundsscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- lat lng bounding box
- Since:
- 6.3.1
-
buildClickBoundingBox
public static BoundingBox buildClickBoundingBox(LatLng latLng, BoundingBox mapBounds, float screenClickPercentage) Build a bounding box using the location coordinate click location and map view bounds- Parameters:
latLng
- click locationmapBounds
- map boundsscreenClickPercentage
- screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query- Returns:
- bounding box
- Since:
- 6.3.0
-
isPointOnShape
public static boolean isPointOnShape(LatLng point, GoogleMapShape shape, boolean geodesic, double tolerance) Is the point on or near the shape- Parameters:
point
- lat lng pointshape
- map shapegeodesic
- geodesic check flagtolerance
- distance tolerance- Returns:
- true if point is on shape
-
isPointNearMarker
Is the point near the shape marker- Parameters:
point
- pointshapeMarker
- shape markertolerance
- distance tolerance- Returns:
- true if near
-
isPointNearPoint
Is the point near the shape point- Parameters:
point
- pointshapePoint
- shape pointtolerance
- distance tolerance- Returns:
- true if near
-
isPointNearMultiLatLng
public static boolean isPointNearMultiLatLng(LatLng point, MultiLatLng multiLatLng, double tolerance) Is the point near any points in the multi lat lng- Parameters:
point
- pointmultiLatLng
- multi lat lngtolerance
- distance tolerance- Returns:
- true if near
-
isPointOnPolyline
public static boolean isPointOnPolyline(LatLng point, PolylineOptions polyline, boolean geodesic, double tolerance) Is the point on the polyline- Parameters:
point
- pointpolyline
- polylinegeodesic
- geodesic check flagtolerance
- distance tolerance- Returns:
- true if on the line
-
isPointOnMultiPolyline
public static boolean isPointOnMultiPolyline(LatLng point, MultiPolylineOptions multiPolyline, boolean geodesic, double tolerance) Is the point on the multi polyline- Parameters:
point
- pointmultiPolyline
- multi polylinegeodesic
- geodesic check flagtolerance
- distance tolerance- Returns:
- true if on the multi line
-
isPointOnPolygon
public static boolean isPointOnPolygon(LatLng point, PolygonOptions polygon, boolean geodesic, double tolerance) Is the point of the polygon- Parameters:
point
- pointpolygon
- polygongeodesic
- geodesic check flagtolerance
- distance tolerance- Returns:
- true if on the polygon
-
isPointOnMultiPolygon
public static boolean isPointOnMultiPolygon(LatLng point, MultiPolygonOptions multiPolygon, boolean geodesic, double tolerance) Is the point on the multi polygon- Parameters:
point
- pointmultiPolygon
- multi polygongeodesic
- geodesic check flagtolerance
- distance tolerance- Returns:
- true if on the multi polygon
-
isPointOnShapeDistance
public static Double isPointOnShapeDistance(LatLng point, GoogleMapShape shape, boolean geodesic, double tolerance) Is the point on or near the shape, returning the distance when on the shape- Parameters:
point
- lat lng pointshape
- map shapegeodesic
- geodesic check flagtolerance
- distance tolerance- Returns:
- distance when on shape, -1.0 when distance not calculated, null when not on shape
- Since:
- 6.3.1
-
isPointNearMarkerDistance
public static Double isPointNearMarkerDistance(LatLng point, MarkerOptions shapeMarker, double tolerance) Is the point near the shape marker, returning the distance when on marker- Parameters:
point
- pointshapeMarker
- shape markertolerance
- distance tolerance- Returns:
- distance when on marker, null when not
- Since:
- 6.3.1
-
isPointNearPointDistance
Is the point near the shape point, returning the distance when on point- Parameters:
point
- pointshapePoint
- shape pointtolerance
- distance tolerance- Returns:
- distance when on point, null when not
- Since:
- 6.3.1
-
isPointNearMultiLatLngDistance
public static Double isPointNearMultiLatLngDistance(LatLng point, MultiLatLng multiLatLng, double tolerance) Is the point near any points in the multi lat lng, returning the nearest distance when on multi lat lng- Parameters:
point
- pointmultiLatLng
- multi lat lngtolerance
- distance tolerance- Returns:
- distance when on multi lat lng, null when not
- Since:
- 6.3.1
-