Skip to content

Instantly share code, notes, and snippets.

@RamonLopezEscudero
Last active February 6, 2016 19:48
Show Gist options
  • Save RamonLopezEscudero/06519e2236b7d36a2069 to your computer and use it in GitHub Desktop.
Save RamonLopezEscudero/06519e2236b7d36a2069 to your computer and use it in GitHub Desktop.
Desplegar un punto en Google Maps mediante coordenadas geográficas
# -*- 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