Physics, asked by nichu6416, 11 months ago

react native calculate distance between two latitude and longitude

Answers

Answered by Rohitdas800
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
Answered by BrainlyPARCHO
0

  \green{  \fcolorbox{grey}{grey}{ \checkmark \:  \textsf{Verified \: answer}}}

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