Giter Site home page Giter Site logo

whereami's Introduction

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/?...

whereami's People

Contributors

migurski avatar thisisaaronland avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.