def _set_gps_from_zone(kwargs, location, zone):
 if (zone is not None):
  kwargs['gps'] = (zone.attributes['latitude'], zone.attributes['longitude'])
  kwargs['gps_accuracy'] = zone.attributes['radius']
  kwargs['location_name'] = location
 return kwargs

def _set_gps_from_zone ( kwargs , location , zone ) : if ( zone is not None ) : kwargs [ 'gps' ] = ( zone . attributes [ 'latitude' ] , zone . attributes [ 'longitude' ] ) kwargs [ 'gps_accuracy' ] = zone . attributes [ 'radius' ] kwargs [ 'location_name' ] = location return kwargs
set the see parameters from the zone parameters .