diff --git a/src/FACT_road.jl b/src/FACT_road.jl index b5f48926809e121e4912e1d7306411f050dca44d..792ef09b61720863870db89c741e0c48b5e3f707 100644 --- a/src/FACT_road.jl +++ b/src/FACT_road.jl @@ -49,6 +49,8 @@ function travel_time_in_minutes(ws_host_port::String, selection::Dict) # Construct the request URL url = "$ws_host_port/route/v1/driving/$(start_longitude),$(start_latitude);$(end_longitude),$(end_latitude)?overview=false" + travel_time = missing # Use `missing` to represent null in Julia + try # Make the request response = HTTP.get(url) @@ -63,7 +65,6 @@ function travel_time_in_minutes(ws_host_port::String, selection::Dict) travel_time = travel_time_seconds / 60 catch e println("Error during HTTP request or response parsing: ", e) - travel_time = missing # Use `missing` to represent null in Julia end # Populate the columns