code: def get_coordinates(self):
          
          resource_list = self.get_resource()
          coordinates = namedtuple('coordinates', ['latitude', 'longitude'])
          try:
              return [coordinates(*resource['point']['coordinates'])
                      for resource in resource_list]
          except (KeyError, TypeError):
              try:
                  if isinstance(resource_list, dict):
                      resource_list = [resource_list]
                  return [coordinates(resource['Point']['Latitude'],
                                      resource['Point']['Longitude'])
                          for resource in resource_list]
              except (KeyError, ValueError) as exc:
                  print(exc)
docs: Retrieves coordinates (latitudes/longitudes) from the output
          JSON/XML response
  
          Returns:
              coordinates (namedtuple): List of named tuples of coordinates
              (latitudes and longitudes)