Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lam-station-visualization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
data-analysis-and-ai
lam-station-visualization
Commits
c41f07b1
"...git@gitlab.labranet.jamk.fi:AC5636/android-exercises.git" did not exist on "d69cd3a9586eb7d20d35d09f1beda87f96bdc705"
Commit
c41f07b1
authored
6 years ago
by
Janne Alatalo
Browse files
Options
Downloads
Patches
Plain Diff
Add temporary fix for traffic flow cors problem
parent
9c1a8467
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4040
passed
6 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/api-client.js
+3
-2
3 additions, 2 deletions
src/utils/api-client.js
with
3 additions
and
2 deletions
src/utils/api-client.js
+
3
−
2
View file @
c41f07b1
...
@@ -28,8 +28,9 @@ export function get_lam_points(api_url, set_state) {
...
@@ -28,8 +28,9 @@ export function get_lam_points(api_url, set_state) {
}
}
export
function
get_free_flow_speeds
(
api_url
,
set_state
)
{
export
function
get_free_flow_speeds
(
api_url
,
set_state
)
{
return
fetch
(
`
${
api_url
}
/api/v1/data/free-flow-speeds`
)
return
fetch
(
"
/free-flow-speeds.json
"
)
.
then
((
res
)
=>
res
.
json
())
.
then
((
res
)
=>
res
.
text
())
.
then
((
t
)
=>
JSON
.
parse
(
t
))
.
then
((
json
)
=>
{
.
then
((
json
)
=>
{
const
tms_data
=
json
.
tmsFreeFlowSpeeds
;
const
tms_data
=
json
.
tmsFreeFlowSpeeds
;
set_state
((
prevState
)
=>
{
set_state
((
prevState
)
=>
{
...
...
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