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

Search Query URL Parameters (useful for search bangs) #119

Open
basings opened this issue Dec 17, 2022 · 5 comments
Open

Search Query URL Parameters (useful for search bangs) #119

basings opened this issue Dec 17, 2022 · 5 comments
Assignees
Labels
enhancement Minor enhancement

Comments

@basings
Copy link

basings commented Dec 17, 2022

How can I suggest a new bang to add osmapp to search engines? Which url do I need to use such that it sends the right request? I'd suggest the bang osmapp.

e.g. for duckduckgo https://duckduckgo.com/bangs

Thank you!

@basings basings changed the title How can I suggest a new bang How can I suggest a new bang for search engines? Dec 17, 2022
@zbycz
Copy link
Owner

zbycz commented Dec 17, 2022

I would love to say how, but first we would have to develop it. Right now there is no way how to link externaly to a prefilled search box. It could be easy to implement it, i may try it if i find time.

btw, under the hood we are using https://photon.komoot.io/ free OSM geocoder. You could probably link the bang to https://photon.komoot.io/api/?q=berlin, but i guess that is not what you want :)

@zbycz zbycz mentioned this issue Jan 20, 2023
3 tasks
@Flohhhhh
Copy link
Contributor

Flohhhhh commented Jun 8, 2023

I will add this when I work on the search again

@Flohhhhh Flohhhhh changed the title How can I suggest a new bang for search engines? Add Search Query URL param (useful for search bangs) Jun 12, 2023
@Flohhhhh Flohhhhh self-assigned this Jun 12, 2023
@Flohhhhh Flohhhhh changed the title Add Search Query URL param (useful for search bangs) Search Query URL Parameters (useful for search bangs) Jun 12, 2023
@Flohhhhh Flohhhhh added the enhancement Minor enhancement label Jun 12, 2023
@amenk
Copy link
Contributor

amenk commented Sep 14, 2024

This should also work for categories. For example

https://osmapp.org?q=amenity/internet_cafe

and it should be possible to combine it with coordinates.

Basically we just have to insert the value from the query parameter into the search box and trigger the search, right?

I also might be able to look into this. Let me know if anybody is working on this.

EDIT: I tried a bit, but did not succeed ...
I was able to pre-fill the search box.

But we also should open the search popup.
Also a second parameter would be nice which works like the old "I am feeling lucky" button of google and "clicks" the first result? This would be helpful for category queries.

amenk added a commit to OpenPlaceGuide/osmapp that referenced this issue Sep 15, 2024
@amenk amenk mentioned this issue Sep 15, 2024
9 tasks
@zbycz
Copy link
Owner

zbycz commented Sep 20, 2024

@amenk - yes, that is exactly what I also had in mind.

But apart from SearchBox needed some refactorings, the synchronization of Autocomplete input with URL is quite tricky 😃 though - I have managed to do it for the new Directions inputs (#515), so would like to migrated it for search as well.

@amenk
Copy link
Contributor

amenk commented Sep 20, 2024

@zbycz yes; I also figured, that this is quite tricky and will leave it up to you, to port the direction inputs to the search as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Minor enhancement
Projects
None yet
Development

No branches or pull requests

4 participants