Remix.run Logo
▲ Show HN: Fast deterministic natural language search for OpenStreetMap data(hippomaps.ch)
30 points by vihren a day ago | 12 comments

I want to show you HippoMaps. It is a fully featured map and navigation app built on OpenStreetMap with a custom Overpass API engine for really fast search of POIs, areas and ways.

My aim with HippoMaps is to get to a level where I don't need Google Maps anymore. The biggest hurdle IMHO with OSM based apps is the lack of nice and fast search (where GMaps excels at). To get there I started working on a deterministic (as in no LLMs used) parser of queries that translates them to the Overpass QL.

Search queries are split into tokens and the algorithm tries to guess "what" you want to search and "where". The former comes from a word list (known brands, sports, OSM tags) and the latter from the geocoder service (Photon).

You can get quite creative like "cafes in Zurich by the Limmat", "peaks over 4000 m in Valais", "pharmacies open now in Bern". It's good for discovering hiking trails, e.g. "hiking trails from Arth-Goldau to Rigi Kulm". It knows how to find stuff between two places, next to a place, near a place and so on. You can stack those as well like "bridges over the danube in serbia 50 km from novi sad".

Except the search it has almost all of the features you would expect from a map like turn-by-turn navigation (Valhalla) with voice (Piper), public transport navigation in Europe (MOTIS), live traffic (only a few countries so far).

The app is GPL-3.0: https://github.com/cdutsov/hippomaps

I'm looking forward to feedback on searches that work or don't work for you + overall comments.

▲freakynit 4 minutes ago | parent | next [-]

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 a minute ago | parent [-]

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.

▲solarkraft 40 minutes ago | parent | prev | next [-]

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 20 minutes ago | parent | next [-]

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 37 minutes ago | parent | prev [-]

> Properly setting filters is literally impossible with most maps apps

wdym?

▲oshawaconnectio 30 minutes ago | parent | prev | next [-]

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 22 minutes ago | parent [-]

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

▲dasrecht 13 minutes ago | parent | prev | next [-]

I just got very confused that i clicked a link and got a coffee spot suggested mere 5km away from me

▲bestouff 17 minutes ago | parent | prev | next [-]

Ooh thank you very much ! Someone skilled please find funds to have this running for free for eveybody using CoMaps !

▲vihren 12 minutes ago | parent [-]

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.

▲ijustlovemath 40 minutes ago | parent | prev [-]

Does it work offline? That's the main time I use osm

▲vihren 20 minutes ago | parent [-]

Unfortunately not. I need about 3 TB of SSD for the map tiles, query engine, routing and navigation and languages.