Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

165
Vistas
JavaScript: Trying to find near tourist attractions, program isn't using current location but seemingly random location

So I've been trying to make a program that shows you near tourist attractions. The problem I am encountering is that the program is showing me seemingly random attractions, in complete disregard for my current location and the entered radius. I think that the problem should lie in the following code:

function getNearbyPlaces(position) {
console.log(position + "##############################");
request = {
   location: position,
   radius: '300',
   query: ['tourist_attraction']
};
service = new google.maps.places.PlacesService(map);
service.textSearch(request, callback);

I'd love some ideas on how to solve this issue and how to get this code working. Be aware I am pretty new to JavaScript!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda