question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Location or radius does not work

See original GitHub issue

Location or radius does not work… @EQuimper, could you tell me what I’m doing wrong? <GoogleAutoComplete apiKey={API_KEY} debounce={500} minLength={3} language="es" queryTypes="establishment" location="37.1848024, -5.7753099" radius="35000" components="country:es" >

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
fuzexjjcommented, Dec 7, 2020

According to the Places API:

Location restrict You may also restrict results to the region defined by location and a radius parameter, by adding the “strictbounds” parameter. This instructs the Place Autocomplete service to return only results within that region.

Otherwise, you would get only prefered result by location and radius but not restricted by the area.

I will try to make PR

1reaction
JackJBlundellcommented, Nov 5, 2020

Has this been fixed? Sorry to be a pain this is a vital part of the API though

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google places autocomplete - location and radius not working
Look at the documentation. It states: radius | Defines the distance (in meters) within which to return Place results.
Read more >
Target ads to geographic locations - Google Ads Help
Note: Hotel Ads campaigns can't be targeted by radius at this time. This article explains how location targeting works and how to set...
Read more >
Changing job search radius - Indeed Support
If you want to change the radius for all your job searches and not just a specific one, open your Search Preferences, select...
Read more >
radius is not working in text search near by in google maps ...
hi, when we do text search on particular location with radius then there is no effect of radius. see attachment,change radius and see...
Read more >
Restricting Where Users Can Clock In Or Clock Out
The distance you set creates a radius around a schedule or job site's address. When I Work uses the GPS signal on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found