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

125
Views
GooglePlacesAutocompletar en reaccionar nativo obtiene latitud y longitud inexactas

Necesito agregar Google Places Autocompletar en mi aplicación react-native, estoy usando la biblioteca react-native-google-places-autocompletar, mi código es:

 <GooglePlacesAutocomplete placeholder="Search address" fetchDetails={true} onPress={(data, details = null) => { // 'details' is provided when fetchDetails = true let lat = details.geometry.location.lat; let lng = details.geometry.location.lng; console.log(lat, lng) } query={{ key: GooglePlacesAPIKey, language: 'en', //components: 'country:us', }} />

Cuando consola.log (lat, lng) después del evento onPress, obtengo una latitud y longitud incorrectas, por ejemplo, si seleccioné del menú desplegable una calle en Manhattan, la latitud y la longitud pueden ser para el nombre de la calle similar en Queens o Brooklyn . ¿Por qué está pasando esto? Cualquier ayuda y consejo es muy apreciado.

about 4 years ago · Juan Pablo Isaza
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!