Esempio n. 1
0
 def test_openmapquest(self):
     g = geocode(self.locations, provider='openmapquest')
     self.assertIsInstance(g, gpd.GeoDataFrame)
Esempio n. 2
0
 def test_nominatim(self):
     g = geocode(self.locations, provider='nominatim')
     self.assertIsInstance(g, gpd.GeoDataFrame)
Esempio n. 3
0
 def test_bad_provider(self):
     with self.assertRaises(ValueError):
         geocode(['cambridge, ma'], 'badprovider')
Esempio n. 4
0
 def test_googlev3(self):
     g = geocode(self.locations, provider='googlev3')
     self.assertIsInstance(g, gpd.GeoDataFrame)
Esempio n. 5
0
 def test_nominatim(self):
     g = geocode(self.locations, provider="nominatim")
     self.assertIsInstance(g, gpd.GeoDataFrame)
Esempio n. 6
0
 def test_openmapquest(self):
     g = geocode(self.locations, provider="openmapquest")
     self.assertIsInstance(g, gpd.GeoDataFrame)
Esempio n. 7
0
 def test_googlev3(self):
     g = geocode(self.locations, provider="googlev3")
     self.assertIsInstance(g, gpd.GeoDataFrame)
Esempio n. 8
0
 def test_bad_provider(self):
     with self.assertRaises(ValueError):
         geocode(["cambridge, ma"], "badprovider")
Esempio n. 9
0
 def test_bad_provider(self):
     with self.assertRaises(ValueError):
         geocode(['cambridge, ma'], 'badprovider')