Last active
February 6, 2016 19:48
-
-
Save RamonLopezEscudero/06519e2236b7d36a2069 to your computer and use it in GitHub Desktop.
Desplegar un punto en Google Maps mediante coordenadas geográficas
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
import py_compile | |
import webbrowser | |
print "Busque sus coordenadas en Google Maps\n \n" | |
print "Ingrese las coordenadas de la longitud deseada \n" | |
grad_lon = raw_input("Grados: \n") | |
min_lon = raw_input("Minutos: \n") | |
seg_lon = raw_input("Segundos: \n") | |
print "\nIngrese las coordenadas de la latitud deseada \n" | |
grad_lat = raw_input("Grados: \n") | |
min_lat = raw_input("Minutos: \n") | |
seg_lat = raw_input("Segundos: \n") | |
url = u'https://www.google.com.mx/maps/place/%s\u00b0%s\'%s"N+%s\u00b0%s\'%s"W' % (grad_lat, min_lat, seg_lat, grad_lon, min_lon, seg_lon) | |
webbrowser.open_new_tab(url) | |
py_compile.compile("WebBrowser.py") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment