Skip to content

Instantly share code, notes, and snippets.

@Vitalts
Created April 11, 2013 06:19
Show Gist options
  • Save Vitalts/5361148 to your computer and use it in GitHub Desktop.
Save Vitalts/5361148 to your computer and use it in GitHub Desktop.
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