requestLocationsFromRectangle

suspend fun requestLocationsFromRectangle(languageCode: LanguageCode = LanguageCode.DE, upperLeftLongitude: Double, upperLeftLatitude: Double, lowerRightLongitude: Double, lowerRightLatitude: Double, restrictions: LocationInformationParams): Result<List<PlaceResultDto>>

Request a list of Place Results located within the given geographical rectangle (bounding box). This is typically used to load points of interest (e.g. shared mobility vehicles) for the currently visible map region.

The rectangle is defined by its upper left and lower right corners.

Return

List of PlaceResultDto located within the given rectangle

Parameters

languageCode

The LanguageCode for the desired results, default is LanguageCode.DE

upperLeftLongitude

The longitude of the upper left corner of the rectangle

upperLeftLatitude

The latitude of the upper left corner of the rectangle

lowerRightLongitude

The longitude of the lower right corner of the rectangle

lowerRightLatitude

The latitude of the lower right corner of the rectangle

restrictions

Restrictions that should be used for results (e.g. a ch.opentransportdata.ojp.domain.model.PointOfInterestFilter)