Hi guys, I am stuck on a problem in a Python programmingexercise. We need to create a list of addresses from the Googlemaps server. Here is the code where we need to fill in the placeson the dots:
class Place:
“””A place with a connection to a Google Maps API searchresult.”””
def __init__(self, street_address):
…
def __repr__(self):
…
def sync_from_google(self, client):
…
@property
def location(self):
…
@classmethod
def from_addresses(cls, addresses, client=None):
“””Create new place objects.
Args:
addresses (list of strings): a list of street address of theplaces
client (googlemaps.client.Client): access to the Google MapsAPI;
if provided, sync the places with Google before returning;
defaults to None
Returns:
list(Place)
“””
places = … # initialize a data structure to collect intermediateobjects
for … in …:
place
PayPal Gateway not configured
PayPal Gateway not configured