Map

interface Map

Map feature — retrieve facilities based on geographic location or viewport.

This interface provides operations to search for facilities near a specific point (latitude/longitude) or within a bounding box (viewport). Results may include facilities not yet associated with the current member, allowing discovery and optional enrollment.

Capabilities

  • Nearby search: find facilities near a given coordinate.

  • Viewport search: get facilities within a rectangular map area.

Platform & threading

  • All functions are suspend and must be called from a coroutine.

  • Errors surface as Throwable and should be handled at call sites.

Typical flows

Functions

Link copied to clipboard
abstract suspend fun getFacilitiesByViewPort(upperLeftLat: Double, upperLeftLng: Double, lowerRightLat: Double, lowerRightLng: Double): List<MapMarker>

Retrieves facilities within the provided viewport boundaries.

Link copied to clipboard
abstract suspend fun getNearbyFacilities(latitude: Double, longitude: Double): List<MapMarker>

Retrieves facilities around the given coordinates.