Ejemplo n.º 1
0
 def test_geocode_station_english(self):
     expected = {'lat': 32.930354, 'lng': 35.54052100000001}
     station = {
         'city': u'עמיעד',
         'address': 'ckv',
     }
     result = milk.geocode_station(station)
     self.assertEquals(result['status'], 'OK')
     self.assertEquals(expected,
                       result['results'][0]['geometry']['location'])
Ejemplo n.º 2
0
 def test_geocode_station_english(self):
     expected = {
                             'lat': 32.930354,
                             'lng': 35.54052100000001
                 }
     station = {
                'city': u'עמיעד',
                'address': 'ckv',
                }
     result = milk.geocode_station(station)
     self.assertEquals(result['status'], 'OK')
     self.assertEquals(expected, result['results'][0]['geometry']['location'])
Ejemplo n.º 3
0
 def test_create_geojson_feature(self):
     station = self.get_a_station()
     geodata = milk.geocode_station(station)
     feature = milk.create_geojson_feature(geodata, station)
     self.assertIsInstance(feature, dict)
Ejemplo n.º 4
0
 def test_create_geojson_feature(self):
     station = self.get_a_station()
     geodata = milk.geocode_station(station)
     feature = milk.create_geojson_feature(geodata, station)
     self.assertIsInstance(feature, dict)