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?

  • SomeoneElse@en.osm.town
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    @ambitiousslab Just follow one of the “server” guides at switch2osm.org, but don’t bother with the rendering bit.
    You can add extra database columns easily (if you want extra keys).
    “on Linux” might cover anything from a greeting card to a supercomputer, but assuming you’re on something resempling a PC and don’t want to query the entire world, this should work.

    • ambitiousslab@feddit.ukOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Thanks for the tip! Your assumptions are correct.

      Someone else suggested osmium tags-filter on the downloaded PBF files (which are ~150 MB), and that’s working well at the moment. I’ll keep this in mind as I’m presuming that importing into a database will be more efficient in case I ever increase the size of the map I’m working with.