Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Routing Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
SWP Datenverwaltung Navigation 2023
Routing Service
Merge requests
!23
Resolve "[DEBUG TOOL] Start/end date"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "[DEBUG TOOL] Start/end date"
4-debug-tool-start-end-date
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
lazarog98
requested to merge
4-debug-tool-start-end-date
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#4 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
e456f63e
1 commit,
2 years ago
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
debug-tool/own_routing_engine.py
+
4
−
2
Options
@@ -15,8 +15,8 @@ class OwnRoutingEngine(RoutingEngine):
response
=
requests
.
post
(
self
.
api_url
,
headers
=
headers
,
data
=
self
.
__build_payload
())
parsed_response
=
response
.
json
()
if
isinstance
(
parsed_response
,
lis
t
):
return
parsed_response
if
isinstance
(
parsed_response
,
dic
t
):
return
parsed_response
.
get
(
'
route
'
,
[])
return
[]
@@ -32,5 +32,7 @@ class OwnRoutingEngine(RoutingEngine):
'
lat
'
:
end
[
0
],
'
lon
'
:
end
[
1
]
},
'
forbidden
'
:
[],
'
start_after_today
'
:
0
,
'
end_after_today
'
:
6
}
return
json
.
dumps
(
payload
)
Loading