[HN Gopher] Osmf: A simple command-line tool to explore OSM data...
___________________________________________________________________
Osmf: A simple command-line tool to explore OSM data (2020)
Author : ducktective
Score : 86 points
Date : 2022-02-11 12:37 UTC (10 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| lucb1e wrote:
| Well that's kind of confusing with the OSMF being a (in the
| community) very widely used abbreviation to refer to the
| OpenStreetMap Foundation. I guess we'll differentiate based on
| capitalization?
| [deleted]
| codesoap wrote:
| Author here. I've heard that before. Maybe I should really
| rename. Got any suggestions? "osms" (OSM search) might be
| misleading because it reminds me of SMS. "osmfind" is a little
| long for my taste, but well, maybe it's better than "osmf".
| ynac wrote:
| XOSM - as in eXplore
|
| CLOSM - might be better as a horror movie
| codesoap wrote:
| Hmm, I'm afraid I'm a bit biased against anything
| "explore", because I always associate it with Microsoft
| (internet explorer and file explorer).
| petepete wrote:
| osmq where the 'q' is for query?
| codesoap wrote:
| Oh, I like that one. I'll think about it for a bit, but
| maybe I'll take it. Thanks!
| morsch wrote:
| osmf <lat> <long> <radius_meter> [way_area<<value>]
| [way_area><value>] [<tag>=<value>]...
|
| Cool, but I often start my with a place name, as opposed to
| lat/long. osmf $(oslatlong "Berlin, Germany")
| <radius_meter> [way_area<<value>] [way_area><value>]
| [<tag>=<value>]...
|
| Unfortunately, oslatlong doesn't exist, but maybe something else
| does the job?
| skywal_l wrote:
| The nominatim service will provide you with a lat/lon:
| $ curl -s 'https://nominatim.openstreetmap.org/search?q=36%20Qu
| ai%20des%20Orfevres%20Paris&format=json' | jq . [
| { "place_id": 5797794, "licence": "Data
| (c) OpenStreetMap contributors, ODbL 1.0.
| https://osm.org/copyright", "osm_type": "node",
| "osm_id": 676748219, ... "lat":
| "48.8554631", "lon": "2.3430218", ...
| } ]
| littlestymaar wrote:
| Just be cautious with nominatim's rate limiting: you'll get
| banned pretty quickly if you ever put such queries in a
| script without a delay between different queries, a dozen of
| queries run in parallel or close together is enough. (been
| there, done that)
| skywal_l wrote:
| Yes indeed. Note that you can always run your own nominatim
| service :)
|
| https://hub.docker.com/r/mediagis/nominatim/
| oogali wrote:
| Here's a quick and dirty implementation.
|
| https://github.com/oogali/oslatlong
| morsch wrote:
| Awesome!
| streamofdigits wrote:
| it sooths my soul that next to the cryptobros and data oligarchs
| there is a small community that chips away at making the world a
| better place - one command line tool at a time
| [deleted]
___________________________________________________________________
(page generated 2022-02-11 23:01 UTC)