From ff77c24c2fada13925aa29c92a59d10bd0f0eaa4 Mon Sep 17 00:00:00 2001
From: Riccardo Boero <ribo@nilu.no>
Date: Wed, 3 Apr 2024 15:04:58 +0200
Subject: [PATCH] Removed missing in float and used nothing instead

---
 src/FACT_elevation.jl | 14 +++++++-------
 src/FACT_jobs.jl      |  2 +-
 src/FACT_road.jl      |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/FACT_elevation.jl b/src/FACT_elevation.jl
index 231a70c..c5f7942 100644
--- a/src/FACT_elevation.jl
+++ b/src/FACT_elevation.jl
@@ -33,13 +33,13 @@ function elevation_data_full(ws_host_port::String, selection::Dict)
     entropy_elevations = Float64[]
     
     for (id, shape) in zip(geo_id, shape_obj)
-        # setting starting values to missing
-        min_elevation = missing
-        max_elevation = missing
-        mean_elevation = missing
-        std_elevation = missing
-        median_elevation = missing
-        entropy_elevation = missing
+        # setting starting values to nothing
+        min_elevation = nothing
+        max_elevation = nothing
+        mean_elevation = nothing
+        std_elevation = nothing
+        median_elevation = nothing
+        entropy_elevation = nothing
 
 
         # Construct the JSON payload
diff --git a/src/FACT_jobs.jl b/src/FACT_jobs.jl
index 7275848..4311f43 100644
--- a/src/FACT_jobs.jl
+++ b/src/FACT_jobs.jl
@@ -94,7 +94,7 @@ function us_qcew(conn::MySQL.Connection, selection::Dict)
         end
 
         # prepare query
-        query = "SELECT Naics as industry, (Jan_jobs+Feb_jobs+Mar_jobs+Apr_jobs+May_jobs+Jun_jobs+Jul_jobs+Aug_jobs+Sep_jobs+Oct_jobs+Nov_jobs+Dec_jobs)/12 as jobs FROM QCEW WHERE Year = "*string(year)*" AND GeoID = '"*full_id*"' AND Agglvl_code = '"*string(agglvl_code)*"';"
+        query = "SELECT Naics as industry, (Jan_jobs+Feb_jobs+Mar_jobs+Apr_jobs+May_jobs+Jun_jobs+Jul_jobs+Aug_jobs+Sep_jobs+Oct_jobs+Nov_jobs+Dec_jobs)/12 as jobs FROM QCEW WHERE Year = $year AND GeoID = '$full_id' AND Agglvl_code = '$agglvl_code';"
         # execute
         result = query_connection(conn, query)
         # Check if the 'industry' column exists
diff --git a/src/FACT_road.jl b/src/FACT_road.jl
index 792ef09..88819f3 100644
--- a/src/FACT_road.jl
+++ b/src/FACT_road.jl
@@ -49,7 +49,7 @@ 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
+            travel_time = nothing  # Use `nothing` to represent null in Julia
 
             try
                 # Make the request
-- 
GitLab