Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

106
Visualizações
Google Places suggestions based on coordinates without map

Seen some related answers, wasn't sure if they are still valid(2014):

Get Google Place Details Without Map

Need to use nearbySearch() with specified coordinates and radius but without displaying and map,just get JSON data and work with it.

even Docs show the use of map to initialize the service :

map = new google.maps.Map(document.getElementById('map'), {
      center: pyrmont,
      zoom: 15
    });

service = new google.maps.places.PlacesService(map);
  service.nearbySearch(request, callback);
}

Any suggestions on how to do it without map as updated solution that apply to current terms ?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There are two ways to use nearbySearch of the Places API. The first (the one you are currently using) is the Places library that is part of the Maps Javascript API. The other one is the Web Service, which is what you are looking for:

https://developers.google.com/maps/documentation/places/web-service/search-nearby

You set the the options (radius, coordinates, json) as query parameters in the URL and it will return the data as JSON. You can use something like .fetch or axios to send the request.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda