Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Data API Reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
FACT Data API Reader
Commits
ad0efca6
Commit
ad0efca6
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Moved elevation and road distance values to sentinel ones (-9999) instead of nothing
parent
ff77c24c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/FACT_elevation.jl
+6
-6
6 additions, 6 deletions
src/FACT_elevation.jl
src/FACT_road.jl
+1
-1
1 addition, 1 deletion
src/FACT_road.jl
with
7 additions
and
7 deletions
src/FACT_elevation.jl
+
6
−
6
View file @
ad0efca6
...
...
@@ -34,12 +34,12 @@ function elevation_data_full(ws_host_port::String, selection::Dict)
for
(
id
,
shape
)
in
zip
(
geo_id
,
shape_obj
)
# setting starting values to nothing
min_elevation
=
nothing
max_elevation
=
nothing
mean_elevation
=
nothing
std_elevation
=
nothing
median_elevation
=
nothing
entropy_elevation
=
nothing
min_elevation
=
-
9999
#sentinel value
max_elevation
=
-
9999
#sentinel value
mean_elevation
=
-
9999
#sentinel value
std_elevation
=
-
9999
#sentinel value
median_elevation
=
-
9999
#sentinel value
entropy_elevation
=
-
9999
#sentinel value
# Construct the JSON payload
...
...
This diff is collapsed.
Click to expand it.
src/FACT_road.jl
+
1
−
1
View file @
ad0efca6
...
...
@@ -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
=
nothing
# Use `nothing` to represent null in Julia
travel_time
=
-
9999
#sentinel value
try
# Make the request
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment