You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: functions-python/reverse_geolocation/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,15 +58,16 @@ This function performs the core reverse geolocation logic. It processes location
58
58
-`stable_id`: Identifies the feed (GTFS or GBFS).
59
59
-`dataset_id`: Required if `data_type` is not provided or is `gtfs`. Identifies the dataset being processed.
60
60
-`stops_url`: Required if `data_type` is not provided or is `gtfs`. URL of the GTFS `stops.txt` file.
61
-
-`station_information_url`: Required if `data_type` is `gbfs` and `vehicle_status_url` is omitted. URL of the GBFS `station_information.json` file.
62
-
-`vehicle_status_url`: Required if `data_type` is `gbfs` and `station_information_url` is omitted. URL of the GBFS `vehicle_status.json` file.
61
+
-`station_information_url`: Required if `data_type` is `gbfs` and `vehicle_status_url` and `free_bike_status_url` are omitted. URL of the GBFS `station_information.json` file.
62
+
-`vehicle_status_url`: Required if `data_type` is `gbfs` and `station_information_url` and `free_bike_status_url` are omitted. URL of the GBFS `vehicle_status.json` file.
63
+
-`free_bike_status_url`: Required if `data_type` is `gbfs` and `station_information_url` and `vehicle_status_url` are omitted. URL of the GBFS `free_bike_status.json` file.
63
64
-`data_type`: Optional. Specifies the type of data being processed. Can be `gtfs` or `gbfs`. If not provided, the function will attempt to determine the type based on the URLs provided.
64
65
65
66
### Processing Steps:
66
67
67
68
1.**Load Location Data**
68
69
- For GTFS: the function reads `stops.txt` into a Pandas DataFrame, ensuring unique longitude-latitude pairs.
69
-
- For GBFS: location data is extracted from `station_information.json`(preferred) or `vehicle_status.json`(fallback), also ensuring uniqueness.
70
+
- For GBFS: location data is extracted from `station_information.json`and `vehicle_status.json`and `free_bike_status.json`, also ensuring uniqueness.
70
71
71
72
2.**Updates Bounding Box**
72
73
- For GTFS: the bounding box is derived from stop coordinates. The dataset's bounding box is updated in the database.
0 commit comments