get_location_attr#

get_location_attr(location, property_name)[source]#

Get the attribute from the json object containing location data given the associated property name.

Parameters:
  • location (json) – the json object with location data

  • property_name (str) – the property name

Returns:

If property_name exists in the location json object, return [True, attribute]. Else, return [False, None].