Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KPublicTransport
Commits
bf25bc78
Commit
bf25bc78
authored
Jun 15, 2021
by
Volker Krause
Browse files
Set the previous/next journey query capabilities for OTP2
parent
0da7f46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/backends/opentripplannergraphqlbackend.cpp
View file @
bf25bc78
...
...
@@ -34,7 +34,8 @@ OpenTripPlannerGraphQLBackend::~OpenTripPlannerGraphQLBackend() = default;
AbstractBackend
::
Capabilities
OpenTripPlannerGraphQLBackend
::
capabilities
()
const
{
return
m_endpoint
.
startsWith
(
QLatin1String
(
"https://"
))
?
Secure
:
NoCapability
;
return
(
m_endpoint
.
startsWith
(
QLatin1String
(
"https://"
))
?
Secure
:
NoCapability
)
|
(
m_apiVersion
==
QLatin1String
(
"otp2"
)
?
(
CanQueryNextJourney
|
CanQueryPreviousJourney
)
:
NoCapability
);
}
bool
OpenTripPlannerGraphQLBackend
::
needsLocationQuery
(
const
Location
&
loc
,
AbstractBackend
::
QueryType
type
)
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment