volga-volga / react-native-yamap

React Native Yandex Maps | Яндекс Карты | Yandex.MapKit implementation for react native | YandexMaps
152 stars 83 forks source link

Implement additional functionality for location determination #90

Closed MaKK99 closed 2 years ago

MaKK99 commented 2 years ago

Good afternoon!

I've been working with your library for a while and ran into the following problem: When the user turns on the location function, their location is displayed on the map. But getting the X and Y coordinates of this place is impossible.

I propose to add such functionality. Obtaining these coordinates will track movements to determine if the user has reached the desired location. Also, the ability to obtain coordinates will help in calculating the distance of the route from the user to the desired place on the route.

I believe this option is not limited to these capabilities, and other developers will also find useful use cases for this feature.

alexdarh commented 2 years ago

U can use Geolocation.getCurrentPosition from react-native-geolocation-service

It success working both Android and iOS