MPVenueStub

data class MPVenueStub(val administrativeId: String, val externalId: String?, val center: MPLatLng, val zoom: Double?, val bounds: MPLatLngBounds?)

A minimal camera description for a single venue, served before any solution data has loaded.

A stub is not a venue: it carries no geometry, floors or buildings, and is never returned from the venue APIs.

Constructors

Link copied to clipboard
constructor(administrativeId: String, externalId: String?, center: MPLatLng, zoom: Double?, bounds: MPLatLngBounds?)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun zoomToFit(viewWidthDp: Int, viewHeightDp: Int): Double?

The zoom at which this venue fills a map view of the given size, on the Google (256 px tile) scale: fitted to bounds when present, otherwise the served zoom.

Properties

Link copied to clipboard

The venue's administrative id, the same value as MPVenue.getAdministrativeId. Not its display name, which MPVenue.getName localizes.

Link copied to clipboard

The bounding box of the venue outline, when the payload carried a usable one.

Link copied to clipboard

The venue's center.

Link copied to clipboard

The venue's external id, when one is configured.

Link copied to clipboard
val zoom: Double?

Zoom level on the Google (256 px tile) scale, as served. bounds is preferred when present.