sdk / com.mapbox.search.location / PointLocationProvider

PointLocationProvider

class PointLocationProvider : LocationProvider

Fixed-point location provider. By default coordinate from location provider used for search. If you specify proximity parameter in search options, it will be used instead of location provider data.

Constructors

<init>

Fixed-point location provider. By default coordinate from location provider used for search. If you specify proximity parameter in search options, it will be used instead of location provider data.

PointLocationProvider(coordinate: Point)

Functions

getLocation

Get user coordinates. Should be called on the main thread.

fun getLocation(): Point?