How do you handle queries in other languages? In Zurich a lot of people would type "Cafés an der Limmat" rather than the English version. The "where" part already comes from Photon, which is multilingual, so I guess the "what" word list is the hard part. The iD editor's tagging presets are translated into dozens of languages, which might give you a multilingual vocabulary of OSM tags almost for free.
Try it out. It already works in quite a lot of languages. I have translations for the connecting words like "in", "along" etc. The categories like "restaurants", "cafes", "train stations" etc are also translated.
Nice to see a GPL 3.0 project here. As someone who likes nerd stuff but does not work in the startup world, most of the "Show HN" projects I see posted are dismal and mercenary.
I don't see the benefit of keeping a maps app to myself. I also used LLMs a lot for the coding of this because I don't have that much free time. It feels weird to close source something like that.
Natural search feels like such a mundane feature, but I consider it damn near revolutionary. Properly setting filters is literally impossible with most maps apps and with the others it’s just impossibly hard. So cool that you managed to do this deterministically!
The README suggests that the app is published to F-Droid:
> F-Droid builds the app from the tag v<versionName> (recipe metadata/ch.hippomaps.app.yml in fdroiddata) and publishes it with our signature: the build is reproducible, so F-Droid copies the signature of our APK onto its own build and publishes only when the two are the same.
(I also didn't see it in the Google Play Store, though I wouldn't be installing it from there anyway.) Is there another place I should be looking for the app?
In that query, it should interpret "campsite" as (tourism=camp_pitch || tourism=camp_site), not camp_site alone, and "mine" as (industrial=mine || historic=mine), not minefield! (The camp_pitch vs camp_site distinction is very annoying and I wish those had better names.)
HippoMaps runs on a 4-core AMD from 2019 with 64 GB ram and 1 TB ssd. The map tiles are on a separate server that's more beefy but I also sell access to Overpass there so that covers the costs more or less.
Actually hosting Overpass (the thing that queries the OSM data) takes more or less the same space as the map tiles.
I am sure that there is a more efficient way to do that, but the vector tiles and Overpass use different databases
This is cool! I've been up and down the map stack, but never dug into the query layer like that. It's so fast on the search and generally works well.
I love the features mappings you do, then you wrapped a nice UX around it. I did try to find dispensaries in Stamford, which here means cannabis retailers. It mapped that to "pharmacies" instead, so I got a CVS drug store. It got my Stamford (CT) correct and suggested a few other Stamfords (like VT).
Since it is Golang, so you might be interested in our ntmaps library. It is MIT-licensed, so should be compatible. It would let you make terminal apps with this (or browser, but you handled that already).
Maybe have it tell you some limitations on certain searches,
"A cafe in {my town} with a nice view". Returned 16 hits, but not ones with a nice view. I guess there's no way for it know. Unless you can get access to online reviews.
Edit: It chose a "node" of a "viewpoint" and found cafes within 1.1km of that. Interesting, but not correct.
I see. Actually that's an unintended functionality. I didn't expect it to wok like that. For example, "cafes in Zurich with a nice view" gives cafes within 1 km of Bürkliplatz, which is a viewpoint on the lake.
For now it doesn't reject anything, that's true.
Not sure how to do this yet, but thanks for the feedback!
This is really nice, thanks! A feature request, can you add "houses" as a searchable feature? E.g. "houses more than 1km away from sewage works and more than 200m away from major train lines and more than 200m away from any loud pubs". IMO that would be a cool feature for people searching for places to rent
This worked quite well! I gave it some very funky queries and it handled them like a pro. I've never even considered the complexity of mapping user queries to real geographical locations. I feel if the menu on the left was a bit cleaner that I would totally scrap Google maps. Very well done!
I am not sure how to make it run offline as it needs machine with a lot for RAM and SSD right now (not the query translator, but the query engine). As a plugin that does the query online and returns POIs, that would work quite well I think.
Super nice ! Feels like the “where” part is the hardest one. How do you decide if a token is a place or a brand, like “Subway” or a shop called “Paris” ?
Brands take precedence, unless you search for "X in Y", then Y is treated as a place always.
It's tricky though. I don't think it covers all cases well enough, though it works fine within Switzerland
The search is a standalone project. You give it a string and it returns the overpass query.
Having the overpass server though is the hard part.
I think that if you have the vector tiles, you could have a serch over them and not need a separate DB for geocoding and overpass, but it is not the case yet.
Could it be segmented if a user just wants a specific area and can dedicate a few hundred megabytes? I'm glad you built this, OSM search has always seemed terrible!
Yes indeed. For tests I use just a segment of Luxembourg or Monaco that takes very little space.
I could think of a dedicated offline app.
Problem is that the search is Rust and Go and I'm not sure how does this work on android.
I am playing with this by cutting and pasting the vaugely worded geographic desriptions in various news articles, and it seems to work, except for trying to turn everything into finding icecream by a lake, which is I presume ai, bieng ai.
Other than that it's great for what is otherwise tedious work for trivial information.
hmmmmm, then what about the ice cream?
now it wants to get me drunk beside the ocean, and still thinks I need to eat something (not specificly ice cream this time) by a lake
or to put it another way, the search suggestions, while not helpfull, ARE amusing, especialy if this is just an artifact of? what exactly?
as to use, I often use open maps, manualy to get a visual on news items, or as an adjunct to other searches sometimes useing direct sattelite feeds, could be anything including simple local navigation, or following something in an article on an archiological site, or something in a book.
so the ability to just cut and paste a written location description is usefull, and wierdly accurate, still might have to do a bit of manual work with the map, but I am used to that, I keep tossing oddballs at it and its comming up ,bang on ,or close,or very far off, but with food, every time, found the takilma road , and the anarkali bazar, but it realy realy trys to feed you, perhaps 10000km from where you are looking, but it's hard to fault an alogorythim with a good apetite.
I tried “cafes by the Limmat 100 m from the lake in Zurich.”
The parser restated it clearly, but returned just one result: Felix at Bellevueplatz 5.
Nearby, the map shows several other café-like places, so I wasn’t sure whether the search was intentionally strict or only matching a narrow OSM category.
wdym?
The README suggests that the app is published to F-Droid:
> F-Droid builds the app from the tag v<versionName> (recipe metadata/ch.hippomaps.app.yml in fdroiddata) and publishes it with our signature: the build is reproducible, so F-Droid copies the signature of our APK onto its own build and publishes only when the two are the same.
but I see no such app: https://search.f-droid.org/?q=hippo&lang=en
nor do I see an issue requesting its inclusion: https://gitlab.com/fdroid/rfp/-/work_items?state=all&search=...
(I also didn't see it in the Google Play Store, though I wouldn't be installing it from there anyway.) Is there another place I should be looking for the app?
I have submitted to google play, but that is also a long and ardous process nowadays
I immediately noticed some quirks in the parsing - for example: https://hippomaps.ch/?q=campsite+within+100+ft+of+a+mine+in+...
In that query, it should interpret "campsite" as (tourism=camp_pitch || tourism=camp_site), not camp_site alone, and "mine" as (industrial=mine || historic=mine), not minefield! (The camp_pitch vs camp_site distinction is very annoying and I wish those had better names.)
"sparsely populated urban residential areas with >75% greenery nearby".
I was able to make it work.. tested it on a small area of 50x50 km2.
But the costs were insane.. first to populate the database, and then to host the query engine.
I love the features mappings you do, then you wrapped a nice UX around it. I did try to find dispensaries in Stamford, which here means cannabis retailers. It mapped that to "pharmacies" instead, so I got a CVS drug store. It got my Stamford (CT) correct and suggested a few other Stamfords (like VT).
Since it is Golang, so you might be interested in our ntmaps library. It is MIT-licensed, so should be compatible. It would let you make terminal apps with this (or browser, but you handled that already).
https://nimbleterminal.github.io/ntmaps/?demo=explorer
"A cafe in {my town} with a nice view". Returned 16 hits, but not ones with a nice view. I guess there's no way for it know. Unless you can get access to online reviews.
Edit: It chose a "node" of a "viewpoint" and found cafes within 1.1km of that. Interesting, but not correct.
For now it doesn't reject anything, that's true. Not sure how to do this yet, but thanks for the feedback!
"Houses more than 300 m away from pubs and more than 1 km away from train stations"
This already works
I've fixed it by stripping special symbols like dashes or apostrophes. I think they're never useful in searches like tat.
The search is a standalone project. You give it a string and it returns the overpass query.
Having the overpass server though is the hard part.
I think that if you have the vector tiles, you could have a serch over them and not need a separate DB for geocoding and overpass, but it is not the case yet.
Its a standalone project, yes :)
The parser restated it clearly, but returned just one result: Felix at Bellevueplatz 5.
Nearby, the map shows several other café-like places, so I wasn’t sure whether the search was intentionally strict or only matching a narrow OSM category.