Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
How to get Lat and Lng from StandaloneSearchBox?

I use the react-google-maps StandaloneSearchBox and query the locations of my points of interest. This works as far as it goes. However, I get back functions for the location and not the actual value. How do I actually get the lat and lng values similar to the viewport.

geometry:
 location: _.bf
   lat: ƒ ()
   lng: ƒ ()

 viewport: _.Wf
   Bb: Vf {g: 41.4022605197085, h: 41.4049584802915}
   Ra: Qf {g: 2.173047169708498, h: 2.175745130291502}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can just call the lat and lng functions to get the values.

  • geometry.location.lat() -> latitude value
  • geometry.location.lng() -> longitude value
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!