Location
With location library you can access current location, observer current location and get place or address of current and specified location (search).
Download#
Prerequisite class#
You need FusedLocationProviderClient
Create PlaceLocation#
Current location#
Observer current location#
This function build under CoroutineScope with return Flow
Get current location#
Get comparator current location (prev and current)#
Place Location#
Structure class of PlaceData#
| Param | type | desc |
|---|---|---|
hereId | String | Id place from Here API |
title | String | Title of place |
address | String | Address of place |
district | String | District of place |
city | String | City of place |
location | Location | Location of place |
distance | Double | Distance of current location and place |
category | String nullable | Category of place |
Get place from location#
Search nearby place#
Search place is searching nearby place on location by query with data result List<PlaceData>