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

87
Views
GoogleMap Autocompletar personalizado 1 país

¡Buenas tardes! Encontré un buen código en la web, Autocompletar personalizado de GoogleMap, puedes verlo aquí:

https://embed.plnkr.co/IWj3w4/

En el script js, hay varias líneas como esta:

 function initialize() { autocomplete = new google.maps.places.Autocomplete( /** @type {HTMLInputElement} */ (document.getElementById('autocomplete')), { types: ['geocode'] }); // When the user selects an address from the dropdown, // populate the address fields in the form. google.maps.event.addListener(autocomplete, 'place_changed', function() { fillInAddress(); }); autocomplete_postalcode = new google.maps.places.Autocomplete( (document.getElementById("AutocompletePostalCode")), { types: ['(regions)'], componentRestrictions: {country: 'fr'} });

Como puede ver en el código, solo debería funcionar para el país "FR", pero funciona en todo el mundo. ¿Cómo hacer 1 país específico en este código? Por ejemplo, EE.UU. o Canadá?

¡Muchas gracias! espero tu ayuda

about 4 years ago · Santiago Trujillo
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!