Created
April 11, 2013 06:19
-
-
Save Vitalts/5361148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import sys | |
if len(sys.argv)==3: | |
print urllib2.urlopen("http://osm.svimik.com/mtrace.php?lat=%s&log=%s&addr" % (sys.argv[1], sys.argv[2])).read() | |
elif len(sys.argv)==2: | |
print urllib2.urlopen("http://osm.svimik.com/mtrace.php?cord=%s&addr" % (sys.argv[1])).read() | |
else: | |
print("Usage:\r\nmtrace.py {lat} {lon}\r\nor\r\nmtrace.py {lon},{lat}\r\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment