How to get a list of all SL region names and
coordinates
October 06, 2006 20:44 | Second Life
Step 1:
UPDATE: The map API JavaScript apparently got changed a little, so the above did no longer work. Here's an updated version that does:
Step 2: Enjoy the list:
curl http://secondlife.com/apps/mapapi/ | awk
-F\" '/^reverse_location_hash\["([0-9]+)-[0-9]+"\] =
"[^"]*";.?$/{split($2, loc, /-/);print loc[1]
",",loc[2] "\t\t" $4}'
UPDATE: The map API JavaScript apparently got changed a little, so the above did no longer work. Here's an updated version that does:
curl http://secondlife.com/apps/mapapi/ | awk
'BEGIN{RS=";";FS="\"";}/^rlh\["([0-9]+)-[0-9]+"\]="[^"]*"$/{split($2,
loc, /-/);print loc[1] ",",loc[2] "\t\t" $4}'
Step 2: Enjoy the list:
...
918, 1023 sunset hills
918, 1030 south sunset
918, 1031 sunset beach
918, 1115 mayoi
919, 911 summit center
919, 919 terra
919, 969 metabirds
919, 1030 sunset city
919, 1124 hukilau
920, 930 paulsresolve
920, 998 reebok
920, 1001 jones beach
920, 1008 del luna
920, 1010 lion valley
920, 1050 cardonicus
920, 1080 tol eressea
920, 1090 dotnetnuke
...
|