diff --git a/examples/city_location.py b/examples/city_location.py index 42aafed..fcd4d9a 100644 --- a/examples/city_location.py +++ b/examples/city_location.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from geolocation.google_maps import GoogleMaps +from geolocation.main import GoogleMaps if __name__ == "__main__": address = "New York City" diff --git a/examples/distance.py b/examples/distance.py index 5d3f5bd..613b5e1 100644 --- a/examples/distance.py +++ b/examples/distance.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from geolocation.google_maps import GoogleMaps -from geolocation.distance_matrix import const +from geolocation.main import GoogleMaps +from geolocation.distance_matrix.client import DistanceMatrixApiClient if __name__ == "__main__": origins = ['rybnik', 'oslo'] @@ -25,7 +25,7 @@ print('duration minutes: %s' % item.duration.minutes) print('duration seconds: %s' % item.duration.seconds) - items = google_maps.distance(origins, destinations, const.MODE_BICYCLING).all() + items = google_maps.distance(origins, destinations, DistanceMatrixApiClient.MODE_BICYCLING).all() for item in items: print('origin: %s' % item.origin) @@ -35,7 +35,7 @@ print('miles: %s' % item.distance.miles) print('duration: %s' % item.duration) - items = google_maps.distance(origins, destinations, const.MODE_WALKING).all() + items = google_maps.distance(origins, destinations, DistanceMatrixApiClient.MODE_WALKING).all() for item in items: print('origin: %s' % item.origin) @@ -45,7 +45,7 @@ print('miles: %s' % item.distance.miles) print('duration: %s' % item.duration) - items = google_maps.distance(origins, destinations, const.MODE_TRANSIT).all() + items = google_maps.distance(origins, destinations, DistanceMatrixApiClient.MODE_TRANSIT).all() for item in items: print('origin: %s' % item.origin) @@ -55,7 +55,7 @@ print('miles: %s' % item.distance.miles) print('duration: %s' % item.duration) - items = google_maps.distance(origins, destinations, avoid=const.AVOID_HIGHWAYS).all() + items = google_maps.distance(origins, destinations, avoid=DistanceMatrixApiClient.AVOID_HIGHWAYS).all() for item in items: print('origin: %s' % item.origin) @@ -65,7 +65,7 @@ print('miles: %s' % item.distance.miles) print('duration: %s' % item.duration) - items = google_maps.distance(origins, destinations, avoid=const.AVOID_FERRIES).all() + items = google_maps.distance(origins, destinations, avoid=DistanceMatrixApiClient.AVOID_FERRIES).all() for item in items: print('origin: %s' % item.origin) @@ -75,7 +75,7 @@ print('miles: %s' % item.distance.miles) print('duration: %s' % item.duration) - items = google_maps.distance(origins, destinations, avoid=const.AVOID_TOLLS).all() + items = google_maps.distance(origins, destinations, avoid=DistanceMatrixApiClient.AVOID_TOLLS).all() for item in items: print('origin: %s' % item.origin) diff --git a/examples/exact_location.py b/examples/exact_location.py index 7e8bdbc..f9e3030 100644 --- a/examples/exact_location.py +++ b/examples/exact_location.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from geolocation.google_maps import GoogleMaps +from geolocation.main import GoogleMaps if __name__ == "__main__": address = "New York City Wall Street 12" diff --git a/examples/reverse_geocode.py b/examples/reverse_geocode.py index 5ac4602..ebc0991 100644 --- a/examples/reverse_geocode.py +++ b/examples/reverse_geocode.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from geolocation.google_maps import GoogleMaps +from geolocation.main import GoogleMaps if __name__ == "__main__": address = "New York City" diff --git a/examples/street_location.py b/examples/street_location.py index e3dbfcd..58cd610 100644 --- a/examples/street_location.py +++ b/examples/street_location.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from geolocation.google_maps import GoogleMaps +from geolocation.main import GoogleMaps if __name__ == "__main__": address = "Wall Street 12"