I like searching for POIs via a query language on Overpass. My queries tend to be quite simple - “get all amenities of x type, in y area that have z tag”. The rendered map showing matching POIs is a nice-to-have, but not completely necessary.

What is the best way to do this offline, on Linux? (ideally using software already packaged for Debian, but that’s not vital).

I’m imagining a REPL that I can pass a downloaded map to, and then can query and see the results (in an ideal world, rendering them too).

It seems database schemas are close to what I want, but they seem to be designed more for people doing large scale complex queries and building bespoke databases just with the information they want.

Are these tools a good fit for my use case, or is there is a better/simpler way?

  • schnurrito
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    How big are the “downloaded maps”?

    JOSM can do fairly complex queries with its search feature, maybe that satisfies your needs; but if you’re dealing with very large areas, they might overwhelm JOSM and not load in it.

    ETA: of course “downloaded maps”, if you mean .osm files, are just XML files, so it’s completely trivial to write simple scripts to search through them oneself

    • ambitiousslab@feddit.ukOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 days ago

      Thank you for the tips! I should have been more precise in my question. The downloaded maps are ~150MB, in PBF format (although I would have been happy to use any other standard format if needed). I went with osmium tags-filter in the end, and it seems to be working well.