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 classYou need FusedLocationProviderClient
PlaceLocation
#
Create #
Current location#
Observer current locationThis function build under CoroutineScope
with return Flow
#
Get current location#
Get comparator current location (prev and current)#
Place LocationPlaceData
#
Structure class of 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 placeSearch place is searching nearby place on location by query with data result List<PlaceData>