Skip to Content
API ReferenceLocationLocationSource

LocationSource

enum LocationSource : Enum<LocationSource>

Represents the origin of a location fix used by the SDK’s positioning system.

The Lazarillo SDK combines multiple location sources to provide accurate positioning in both indoor and outdoor environments. This enum identifies which technology produced a given location estimate, allowing downstream consumers to understand the reliability and context of each fix. Beacon-sourced locations are generally more accurate indoors, while GPS-sourced locations are preferred outdoors.

See also

com.lazarillo.sdk.plugin.repository.model.place.LzLocation
LocationMergedRepository

Entries

GPS_LOCATION_SOURCEGPS_LOCATION_SOURCE
Location obtained from GPS via the Android Fused Location Provider. Preferred for outdoor positioning.
BEACON_LOCATION_SOURCEBEACON_LOCATION_SOURCE
Location obtained from Bluetooth beacons (Eddystone or iBeacon). Preferred for indoor positioning and includes floor information.
UNKNOWN_SOURCEUNKNOWN_SOURCE
Location source could not be determined. Used as a default or fallback value.

Properties

entries

val entries: EnumEntries<LocationSource>

Returns a representation of an immutable list of all enum entries, in the order they’re declared.

name

val name: String

ordinal

val ordinal: Int

Functions

valueOf

fun valueOf(value: String): LocationSource

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values

fun values(): Array<LocationSource>

Returns an array containing the constants of this enum type, in the order they’re declared.

Last updated on