Builder

class Builder

MPLocation builder class

Constructors

Link copied to clipboard
open fun Builder(@Nullable uniqueId: String)
Link copied to clipboard
open fun Builder(@NonNull srcLocation: MPLocation)
Sets up a new builder using another MPLocation as a starting point This will create a new MPLocation object keeping all the given one's dataData can then be altered using the builder's methods as usual

Functions

Link copied to clipboard
Builds an MPLocation object
Link copied to clipboard
open fun setActiveFrom(activeFromTime: Long): MPLocation.Builder
Sets the active-from property in UTC.
Link copied to clipboard
open fun setActiveTo(activeToTime: Long): MPLocation.Builder
Sets the active-to property in UTC.
Link copied to clipboard
Sets the location's aliases property
Link copied to clipboard
open fun setBuilding(@NonNull buildingAdministrativeId: String): MPLocation.Builder
Sets the location's building Only set a building when a POI is inside one.
Link copied to clipboard
Sets the categories that this location belongs to, if any
Link copied to clipboard
Sets a description text
Link copied to clipboard
Sets the external id property
Link copied to clipboard
Sets an optional set of data fields
Link copied to clipboard
Sets the location's floor (index)
Link copied to clipboard
Sets the location's floor name
Link copied to clipboard
Sets the geometry for this MPLocation as a MPPoint
Sets the geometry for this MPLocation as a MPPolygonGeometry
Link copied to clipboard
Sets the location type.
Link copied to clipboard
Sets the location's name property
Link copied to clipboard
Sets/updates the position (ONLY LAT/LNG are used)
open fun setPosition(latitude: Double, longitude: Double): MPLocation.Builder
Sets/updates the position
Link copied to clipboard
Sets this location type (office, meeting room, etc.
Link copied to clipboard
Sets the venue this location belongs to