-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current user location #3
Comments
You can do it with this:
|
@OrhanTozan Is it possible to get the user's current location by using that provided code? Or is there somewhere where |
@plusmobileapps you're right. I edited my answer. |
What's funny is in the 13 minutes of me commenting that, I figured that out. To the original issue posted here, it would be nice to add a new function to class LocationTracker {
suspend fun getCurrentLocation(): LatLng {
startTracking()
val currentLatLng = getLocationsFlow().first()
stopTracking()
return currentLatLng
}
} |
Need func or property to get user location one time
The text was updated successfully, but these errors were encountered: