react native calculate distance between two latitude and longitude
Answers
Answered by
0
I've got an object containing the lat and lng of my companys facilities. I've also got an object containing the lat and lng of the user's current location. What I'd like to do is iterate through the object with the location data of the sites, and calculate the closest one to the user's location. I'd like to get the kilometers between the two as well as the time it would take to drive the distance.
I've been looking at Google's Geometry API but can not figure out how to use this in React Native, if it's possible.
I hope you like it if yes then make me as brainlist plz plz plz plz plz
I've been looking at Google's Geometry API but can not figure out how to use this in React Native, if it's possible.
I hope you like it if yes then make me as brainlist plz plz plz plz plz
Answered by
0
Get The Coordinates Of A Place
- On your computer, open G0ogle Maps, you'll see a lightning bolt at the bottom.
- Right‑click the place or area on the map.
- Select What's here?
- At the bottom, you'll see a card with the coordinates.
Similar questions
Computer Science,
7 months ago
Biology,
7 months ago
Math,
1 year ago
Math,
1 year ago
History,
1 year ago