Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have to put coordinates as decimal #147

Closed
jidanni opened this issue Oct 9, 2017 · 2 comments
Closed

have to put coordinates as decimal #147

jidanni opened this issue Oct 9, 2017 · 2 comments

Comments

@jidanni
Copy link

jidanni commented Oct 9, 2017

In
https://framagit.org/PanierAvide/Pic4Carto/issues/34#note_145601
I was told to report weird behavior here.

@PanierAvide
Copy link

PanierAvide commented Oct 9, 2017

To be more precise, when entering 24,121 lat/lng coordinates, you don't end up near these coordinates but 60.76244, 30.14387 instead. Happens with version 1.0.0 (from npm). But when writing it decimal 24.0,121.0, it works as expected.

@smeijer
Copy link
Owner

smeijer commented Oct 9, 2017

I'm not sure if there is anything we can do. Searching for coordinates is only working because your provider is handling them. For example the openstreetmap provider just gives different results for 52,6 vs 52.0,6.0.

What we could do, is add a option to handle numeric input as being lat/lon. For backwards compatibility, this should be optional / configurable.

@smeijer smeijer closed this as completed Apr 15, 2020
smeijer added a commit that referenced this issue Oct 4, 2023
Quick, *pure js* implementation to handle coordinate queries (#147). If
a user enters valid coordinates, they get a single result with that
point (as in Google Maps and other services). It's a useful feature for
power users.

![image](https://github.com/smeijer/leaflet-geosearch/assets/8945883/775ac7a2-3802-44e8-a3d5-c59d91d579e6)

Any other queries are sent to the Provider. Happy to see this in
TypeScript and otherwise improved, it's probably not ready for merging.

---------

Co-authored-by: Stephan Meijer <stephan.meijer@gmail.com>
alexandervlpl added a commit to alexandervlpl/leaflet-geosearch that referenced this issue May 3, 2024
Quick, *pure js* implementation to handle coordinate queries (smeijer#147). If
a user enters valid coordinates, they get a single result with that
point (as in Google Maps and other services). It's a useful feature for
power users.

![image](https://github.com/smeijer/leaflet-geosearch/assets/8945883/775ac7a2-3802-44e8-a3d5-c59d91d579e6)

Any other queries are sent to the Provider. Happy to see this in
TypeScript and otherwise improved, it's probably not ready for merging.

---------

Co-authored-by: Stephan Meijer <stephan.meijer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants