WalkingPathOverlayUtil

Utility class for WalkingPathOverlay.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Determines the geographic boundaries that encapsulates the given building
Link copied to clipboard
Determines the geographic boundaries that encapsulates the given coordinate list
Link copied to clipboard
Determines the geographic boundaries that encapsulates the given floor
Link copied to clipboard
Determines the geographic boundaries that encapsulates the given waypath segment
Link copied to clipboard
open fun boundsForWaypath(waypath: Waypath, floor: String): LatLngBounds
Determines the geographic boudaries that encapsulates the part of a waypath on a given floor
Link copied to clipboard
open fun boundsForWaypoints(waypoints: List<Waypoint>, floor: String): LatLngBounds
Calculates the bounds for a list of given waypoint on a given floor.
Link copied to clipboard
Finds the closest waypoint in a given list for the given location, only if it is a destination type.
Link copied to clipboard
open fun findClosestWaypointAtLocation(location: LatLng, floorId: String, vmd: Map): Waypoint
Figure out the closest mapped waypoint to a user-tapped location
Link copied to clipboard
open fun getBoundsZoomLevel(bounds: LatLngBounds, mapWidthPx: Integer, mapHeightPx: Integer): Float
Calculates the zoom needed to display the entire bounds on a map.
open fun getBoundsZoomLevel(bounds: LatLngBounds, mapWidthPx: Integer, mapHeightPx: Integer, maxZoom: Float): Float
Calculates the zoom needed to display the entire bounds on a map clamped to a max zoom.
Link copied to clipboard
open fun rotateCoordinate(coordinate: LatLng, center: LatLng, bearing: Double): LatLng
Rotates a coordinate around a center point