pytuflow.ArrApiClient.fetch_point_tp_for_coords#
- ArrApiClient.fetch_point_tp_for_coords(lat, lon)#
Requests the
PointTPandArealTPlayers for arbitrary coordinates, used to fetch an “additional” temporal pattern region’s own point (and, if available, areal) temporal patterns (seetemporal_patterns.additional_tp/pytuflow.arr.temporal_patterns.fetch_additional_region_point_tp()). Returns a(point_tp_layer, areal_tp_layer, raw_response)tuple: the rawPointTPlayer dict (with its downloadurl), the rawArealTPlayer dict likewise (Noneif the Data Hub doesn’t provide one for these coordinates), and the full raw JSON response dict (kept for optional verbose working-data output, seepytuflow.arr.working_data).- Parameters:
lat (float) – Latitude of the additional temporal pattern region’s representative location.
lon (float) – Longitude of the additional temporal pattern region’s representative location.
- Returns:
(point_tp_layer, areal_tp_layer, raw_response): thePointTPlayer dict, theArealTPlayer dict (Noneif not available), and the full raw JSON response dict.- Return type:
tuple
- Raises:
ArrApiError – If the request fails, the response is not valid JSON, or the
PointTPlayer is missing.