LLM-based OSM frontend

Guys, maybe this will be of interest to some of you. I’ve been building a LLM-driven pipeline to pick the right tag keys and values when querying local Geofabrik/PostgreSQL data, based on the separately parsed user query. The flow is two-stage: first, the LLM proposes the most discriminative key for the object type (from an allowed key list, which is all columns from Geofabrik tables). Then, instead of guessing values, I pull the real values that actually exist in the country’s precreated tag-value index, feed that list to the LLM, and let it choose the best matches. There’s a parallel “hstore” path where the model picks a single best hstore key from an allowed set, and a second step selects the matching value from real data. It’s been a big win for precision: the LLM never invents tags — it only selects from what’s truly in the database, so scans are faster and cleaner.

Are there any similar frontends for OSM, do you know? Mine is available for testing at www.locationvault.com.

1 Like

love it. I’m building my own Tesla Supercharger / Charging infrastucture conflation tool right now. Was there a reason not to use overpass turbo?

any reason to use google maps and not openstreetmap/maplibre? :upside_down_face:

1 Like

Thanks. I guess the reason is that public OSM API will block my IP once I have more than one request per second or similar. So I had to go with offline Geofabrik databases.

The goal and idea behind this tool is to combine data from several sources, OSM, Google Places, Wikidata and more in the future. Or perhaps your question is why I don’t use openstreetmap as my main map in the tool? I think because I need 3D imagery which I believe is best in Google Maps.

You may be interested in Postpass, a SQL web interface to OSM data. Currently hosted by Geofabrik.
The Readme has a prompt for LLMs