Qwant / qwantmaps

Central repository for Qwant Maps resources
https://www.qwant.com/maps/
Apache License 2.0
380 stars 34 forks source link

Handle GPS coordinates in search form #148

Open brunetton opened 3 years ago

brunetton commented 3 years ago

When entering GPS coordinates (ex: 50.6416,3.0597) the map understand it and display the result as a point on map

sfkeller commented 2 years ago

Agreed.

Actually, this is what currently works:

  1. Calling following URL directly: https://www.qwant.com/maps/place/latlon:63.16595:10.11174 (which is near address "1966 Hølondvegen, 7212 Korsvegen, Norway").
  2. Left-Klick anywhere on the map, for example near "63.16594, 10.11170". This then displays on Qwant Maps "Near ..." and a coordinate "63.16594 : 10.11170" below the address, and the same coordinate is also put in the Search input field.
  3. Clicking on coordinate "63.16594 : 10.11170" below address to center & zoom map (again).

This is what does not work yet (but should): Entering (or confirming) a coordinate in the search field, like "63.16594, 10.11170" - then clicking "Search"! The behavour of case 2 above is weird that Qwant puts "63.16594 : 10.11170" into the Search field and then fails when a user confirms and clicks again on "Search!". In both cases Qwant currently responds with "Sorry, we could not find this place".

The solution and behaviour I'd expect is, that when a user searches (or confirms) a coordinate like "63.16594, 10.11170" (or "63.16594 : 10.11170"), Qwant Maps centers & zooms there, and does a geocoding displaying "Near ...".

Actually, in use case 3, clicking on the coordinate "63.16594 : 10.11170" (or rather "63.16594, 10.11170"), should copy it in paste buffer (same coordinates are already in the Search field, an a user can simply click on "Search!" to center & zoom again).

sfkeller commented 4 months ago

Any update on this? Extracting coordinates from a string to a lat/lon is a no-brainer. I would accept many delimiters: space, colon, semicolon, etc.