The little python script that tells you where you are
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ModestMaps @ 0310a05
.gitmodules
README
whereami.py

README

Sanity-check locations in lat, lon or mercator forms.

Most output is on stderr, the URLs are on stdout so it's possible to use like this:
    % open `python whereami.py -13628177 4546770 -13627494 4546034`

Examples follow.

% python whereami.py 15/5241/12666
southwest:   37.76201938 -122.42064938
northeast:   37.77070423 -122.40966305
upper-left:  -13627804.35 4547084.46
lower-right: -13626581.36 4545861.47
http://pafciu17.dev.openstreetmap.org/?...

% python whereami.py 37.764897 -122.419453
mercator: -13627671.17 4546266.67
tile:     8/40/98
http://pafciu17.dev.openstreetmap.org/?...

% python whereami.py 37.764897 -122.419453 14
mercator: -13627671.17 4546266.67
tile:     14/2620/6333
http://pafciu17.dev.openstreetmap.org/?...

% python whereami.py -13627671 4546266
lat, lon: 37.76489221 -122.41945146
tile: 8/40/98
http://pafciu17.dev.openstreetmap.org/?...

% python whereami.py -13627671 4546266 12
lat, lon: 37.76489221 -122.41945146
tile: 12/655/1583
http://pafciu17.dev.openstreetmap.org/?...

% python whereami.py 37.763251 -122.424002 37.768476 -122.417865
southwest:   37.76325100 -122.42400200
northeast:   37.76847600 -122.41786500
upper-left:  -13628177.56 4546770.67
lower-right: -13627494.40 4546034.89
http://pafciu17.dev.openstreetmap.org/?...

% python whereami.py -13628177 4546770 -13627494 4546034
southwest:   37.76324465 -122.42399694
northeast:   37.76847126 -122.41786144
upper-left:  -13628177.00 4546770.00
lower-right: -13627494.00 4546034.00
http://pafciu17.dev.openstreetmap.org/?...