21 comments

  • dialectio 1 hour ago
    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.
    • vihren 46 minutes ago
      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.
  • Yiyli 3 hours ago
    I really love this cool idea.I tried "cheap coffee near shenzhen univisity",but it found some "Chinese food"which are not cafes
    • vihren 2 hours ago
      Ah, it wouldn't know cheap, but it shouldn't resort to a different category. Thanks for reporting. I'll see how to fix it.
  • TFNA 2 days ago
    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.
    • vihren 2 days ago
      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.
  • solarkraft 2 days ago
    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!
    • vihren 2 days ago
      Its not very polished still, but I hope it can be a decent example of what we could have as FOSS maps
    • rrr_oh_man 2 days ago
      > Properly setting filters is literally impossible with most maps apps

      wdym?

  • chandlerswift 2 days ago
    I noticed that there's an android version that I figured I'd check out: https://github.com/cdutsov/hippomaps/blob/main/android/READM...

    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?

    • vihren 2 days ago
      I can't upload it to fdroid yet because the app is too new and they want the project to be at least 3-monts old.

      I have submitted to google play, but that is also a long and ardous process nowadays

  • rafram 2 days ago
    This is really cool! I tried building something similar recently (with an LLM-based query parser), but you definitely executed it much better.

    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.)

    • vihren 1 day ago
      Oh, might be good to know if the campsite is next to a minefield though
  • freakynit 2 days ago
    I was too building something similar 2 months back.. the intent was to be able to locate places with such queries, for example:

    "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.

    • vihren 2 days ago
      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.
      • freakynit 2 days ago
        I should have been more clear on the serving part... i meant the tiles, not just the "query engine".
        • vihren 2 days ago
          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
  • neomantra 2 days ago
    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).

    https://nimbleterminal.github.io/ntmaps/?demo=explorer

    • vihren 2 days ago
      Cool. I will definitely check this out. I love terminal apps. Never thought of terminal m*apps, that'd be fun.
  • ddkbs 1 day ago
    Haha crazy how nobody really thought about it or tried to implement it! Really nice will definitely give it a try.
    • vihren 1 day ago
      Thanks! Let me know what queries work for you and what don't.
  • ks2048 2 days ago
    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.

    • vihren 1 day ago
      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!

  • oshawaconnectio 2 days ago
    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
    • vihren 2 days ago
      Thats a nice idea. It already would work I think, except that it doesn't know about sewage works and loud pubs.

      "Houses more than 300 m away from pubs and more than 1 km away from train stations"

      This already works

  • carter-qadenza 2 days ago
    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!
    • vihren 1 day ago
      Oh cool! What is it that you don't like about the menu on the left?
  • bestouff 2 days ago
    Ooh thank you very much ! Someone skilled please find funds to have this running for free for eveybody using CoMaps !
    • vihren 2 days ago
      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.
  • orbis-tertius 2 days ago
    This is a great addition to OSM, we definitely needed it. Thanks for building this.
    • vihren 2 days ago
      Thank you! I hope it can encourage more people to map their surroundings.
  • mokto 2 days ago
    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” ?
    • vihren 1 day ago
      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
      • mokto 1 day ago
        Ok thanks. So “in Y” always wins & a shop just called Paris stays a brand. Feels like that one still breaks outside Switzerland ?
  • roshannarma 2 days ago
    This is cool but still runs into the same issue i have for "H-E-B" a texan grocery store, where looking up "heb" does not find it.
  • dasrecht 2 days ago
    I just got very confused that i clicked a link and got a coffee spot suggested mere 5km away from me
  • ijustlovemath 2 days ago
    Does it work offline? That's the main time I use osm
    • vihren 2 days ago
      Unfortunately not. I need about 3 TB of SSD for the map tiles, query engine, routing and navigation and languages.
      • Aachen 2 days ago
        Why does a search engine need tiles? Could use it with any tile server
        • vihren 1 day ago
          https://gitlab.com/cdutsov/overpass-search

          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.

        • rafram 2 days ago
          Vector tiles are relatively small. The data necessary for a full Overpass query server is huge.
        • Akseleu_omirbay 2 days ago
          [flagged]
      • ijustlovemath 2 days ago
        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!
        • vihren 2 days ago
          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.
  • metalman 1 day ago
    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.
    • vihren 14 hours ago
      There's no AI involved here though. What kind of queries work and don't work for you? I'm curious
      • metalman 13 hours ago
        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.
  • yajan2 2 days ago
    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.

    • vihren 1 day ago
      I think it's correct because that's the only one that's some meters away from the Limmat and 100 m away from the lake.