コード例 #1
0
ファイル: tests.py プロジェクト: nexusriot/yandexmaps2
 def test_reverse(self):
     point = Point(37.521309,55.753134)
     address = 'Москва, Шелепихинская набережная, 12'
     api = Yandexapi(API_KEY)
     result = api.reverse(point)
     self.assertEqual(address, result, None)
コード例 #2
0
ファイル: tests.py プロジェクト: nexusriot/yandexmaps2
 def test_staticMapP(self):
     point = Point(37.521309,55.753134)
     link = 'http://static-maps.yandex.ru/1.x/?ll=37.5213090,55.7531340&size=400,400&l=map&spn=0.003,0.003'
     result = Yandexapi.getStaticMapUrlParams(point, 400, 400)
     self.assertEqual(link, result)
コード例 #3
0
ファイル: tests.py プロジェクト: nexusriot/yandexmaps2
 def test_geocoding(self):
     address = 'Москва, Большая Якиманка, 22'
     point = Point(37.614545, 55.738216)
     api = Yandexapi(API_KEY)
     result = api.geocode(address)
     self.assertEqual(point, result, None)