Address autocompletion query should use GET and not POST
See original GitHub issueShouldn’t autocompletion queries use GET
instead of POST
? That would (e.g.) permit browser and reverse proxy cache.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Address Autocomplete | What it is and how to use it
Address Autocomplete is an address form feature that suggests street addresses to users as they type an address into a form. Because an...
Read more >Query Autocomplete | Places API - Google Developers
The Query Autocomplete service can be used to provide a query prediction for text-based geographic searches, by returning suggested queries as you type....
Read more >What is Address Autocomplete? How to Get Started
Address autocomplete is an address form feature that automatically suggests addresses to users as they type an address into an online form or...
Read more >Question regarding the Google Autocomplete query with ...
I'm asking because the address that I used to test the validation and return ZERO_RESULT is a valid address, I can actually find...
Read more >Address Autocomplete | Maps API - Geoapify
You have a map and you want to use address autocomplete input to zoom the map to the selected location. In this case...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would use the following logic at HTTP caching level: IF (HTTP query contains coordinates) THEN: use an
Expire
header to indicate intermediate caches (reverse proxies/browser) that it can be cached for a certain amount of time ELSE noExpire
header.A simplistic approach would be to round latitude/longitude coordinates to a specific number of decimals. In the worst case (at equator), 1° is: EarthCircumference / 360 = 40075.16 km / 360 ≃ 111.32 km. Rounding latitude/longitude coordinates using 3 digits (1/1000 precision) would be rouding to 111.32 m in the worst case. I guess that this kind of service wouldn’t suffer of 1 km precision in terms of relevancy which would therefore be achieved rounding coordinates to 0.01°.
Hi @patrickallaert thanks for all the suggestions here, we currently think this is not a critical issue and so will close this issue.
If in the future we identify this as being realy critical we will surely need your help and advice thought. Thanks!