# -*- coding: utf-8 -*-
from pygeocoder import Geocoder
import Pysolar as solar
import datetime
import time
results = Geocoder.geocode("mahmudiye mh., nil sok.,inegöl turkey")
print(results[0].coordinates)
print(results[0])
d = datetime.datetime.utcnow()
print solar.GetAltitude((results[0].coordinates)[0],\
(results[0].coordinates)[1], d)
print solar.GetAzimuth((results[0].coordinates)[0],\
(results[0].coordinates)[1], d)
print "_"*20
ts= time.localtime()
print ts[0]
print solar.GetAzimuth((results[0].coordinates)[0],\
(results[0].coordinates)[1],d)
from pygeocoder import Geocoder
import Pysolar as solar
import datetime
import time
results = Geocoder.geocode("mahmudiye mh., nil sok.,inegöl turkey")
print(results[0].coordinates)
print(results[0])
d = datetime.datetime.utcnow()
print solar.GetAltitude((results[0].coordinates)[0],\
(results[0].coordinates)[1], d)
print solar.GetAzimuth((results[0].coordinates)[0],\
(results[0].coordinates)[1], d)
print "_"*20
ts= time.localtime()
print ts[0]
print solar.GetAzimuth((results[0].coordinates)[0],\
(results[0].coordinates)[1],d)
Hiç yorum yok:
Yorum Gönder