create

fun create(types: Set<PersonalLocation.Type>, place: Place, name: String = "", hasPrivateCharger: Boolean = false): PersonalLocation

Saves the place as a personal location with the given types.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

The newly created personal location.

Parameters

types

The types of the personal location. Is required to be non-empty, otherwise the method throws an IllegalArgumentException.

place

The place for which a personal location is created.

name

The name of the personal location.

hasPrivateCharger

Whether the personal location has a private charger.