graphhopper/graphhopper-maps

Create search option for firefox address-line

flaun opened this issue · 4 comments

flaun commented

In the last graphhopper version it was possible to click via right mouse click a search option in firefox. Afterwards it was possible to decide while typing something into the address-line which search engine you want to use, for example DuckDuckGo, Startpage, Ecosia, Amazon, Google, Graphhopper Maps.

This made it easier to find quicker a place with graphhopper maps. No need to go first on the main page and search there again for the place or route you are interested in.

Would be great to implement this feature again.

Thanks

I think we just had an opensearch.xml in the root folder like this:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
    <ShortName>GraphHopper Maps</ShortName>
    <Description>GraphHopper Maps gives you the best route for car, bike or by foot.</Description>
    <Tags>route map openstreetmap</Tags>
    <Contact>info@graphhopper.com</Contact>    
    <Image height="16" width="16" type="image/x-icon">https://graphhopper.com/favicon.ico</Image>
    <Image height="16" width="16" type="image/x-icon">https://graphhopper.com/img/icon.png</Image>
    <Url type="text/html" template="https://graphhopper.com/maps/?point={searchTerms}"/>    
    <OutputEncoding>UTF-8</OutputEncoding>
    <InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>

The links for the favicons are outdated but the search should work with this. Can you try this?

flaun commented

Created a file with the editor called: opensearch.xml
But I don't know exactly where to safe this file.
Can you help me please?

flaun commented

was able to create a custom search with the firefox addon: Add custom search engine. Now everything works. Just the icon is missing. Do you have a updated link for the favicons?
Thanks for helping

Ah, good to hear. You can use the icon in this repository https://github.com/graphhopper/graphhopper-maps/blob/master/src/favicon.png