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.

Address autocompletion query should use GET and not POST

See original GitHub issue

Shouldn’t autocompletion queries use GET instead of POST? That would (e.g.) permit browser and reverse proxy cache.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickallaertcommented, Jun 27, 2016

We use the user ip when he refused the precise geolocation or when it’s not available for various reasons. Then using that ip we can approximately locate the user.

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 no Expire header.

I have no idea how rounding would work, if it provide a good HIT ratio then why not. But if it degrades the relevancy of the API then that would be a nogo.

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°.

0reactions
vvocommented, Aug 26, 2016

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!

Read more comments on GitHub >

github_iconTop 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 >

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