How to find user coordinates in YandexMapkit?
I use the Location class and prescribe
private Location location;
location.getPosition();
but it is empty.
How to find user coordinates in YandexMapkit?
I use the Location class and prescribe
private Location location;
location.getPosition();
but it is empty.
Copyright © 2021 Jogjafile Inc.
you should look at the repository: https://github.com/yandex/mapkit-ios-demo - there are a lot of useful samples. Here is how I do if I want to get user location in iOS app:
mapView - is YMKMapView! from storyboard.
Of course you should also ask permissions from user and add to info.plist "Privacy - Location When In Use Usage Description".