def test_SimpleGeocode(self): result = placefinder.geocode("1001 E Playa Del Norte, Tempe AZ 85281") # fetch the first result result = result[0] self.assertEqual(result["latitude"], "33.435493")
def test_StructuredGeocode(self): result = placefinder.geocode(house="1001", street="Playa Del Norte Dr", city="Tempe", state="AZ", country="USA") result = result[0] self.assertEqual(result["latitude"], "33.435493")
def test_FlagsForcesJson(self): result = placefinder.geocode(name="SFO", flags="XRT") result = result[0] self.assertEqual(result["line1"], "San Francisco International Airport")
def test_AirPortCode(self): result = placefinder.geocode(name="SFO") result = result[0] self.assertEqual(result["line1"], "San Francisco International Airport")