OpenStreetMap logo OpenStreetMap

Who is mapping nearby?

Rodney ಅವರಿಂದ 7 ಮೇ 2008 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

I was wondering who is actively mapping nearby. There are quite a few roads and features laid down in Wrocław.

Here is a script for zsh that finds out. Just copy and paste into your terminal:

OSM_DATA=$(date +wrocław-%Y%m%d.osm)
WROC_BBOX="17.003574,51.090046,17.074814,51.124536"

wget osm.org/api/0.5/map\?bbox=$WROC_BBOX -O $OSM_DATA

# IFS variable must be set to a newline character.
# This is why the quoted string continues over the line.
IFS="
"

for person in $(grep user= $OSM_DATA | sed 's/.*user="\([^"]*\)".*/\1/g' | sort -u)
do
echo $person "\t" `grep user= $OSM_DATA | grep $person | wc -l`
done

And the results for today are:

Adrian Siemieniak 68
Bart Vanhauwaert 8
Jan Górski 2282
luk vanhauwaert 34
Marc Schütz 1
pavel 33
Slawek Janukowicz 620
xjr 4

ಸ್ಥಳ: Szczepin, Wrocław, Lower Silesian Voivodeship, Poland
Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Rodneyಅವರಿಂದ 12:34 ರಲ್ಲಿ 7 ಮೇ 2008ರಂದು ಅಭಿಪ್ರಾಯ

Forgot to mention: this script downloads the XML streetmap data for a rectangle around Wrocław and justs counts the number of nodes and ways assigned to each user.

maningಅವರಿಂದ 04:07 ರಲ್ಲಿ 19 ಜೂನ್ 2008ರಂದು ಅಭಿಪ್ರಾಯ

I cannot seem to get it working as a script in bash

ಲಾಗಿನ್ ಅಭಿಪ್ರಾಯ ತಿಳಿಸಲು