question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some examples are not succeeding

See original GitHub issue

Some examples from the example page break. Maybe the API has changed?

Accessing https://3.vbb.transport.rest/stops?query=jungfernheide:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /stops</pre>
</body>
</html>
[OK]
------------------------------------------------------------------------------
Accessing https://3.vbb.transport.rest/stops?query=mehrigndamm&fuzzy=true:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /stops</pre>
</body>
</html>
[OK]
------------------------------------------------------------------------------
Accessing https://3.vbb.transport.rest/stops?weight=9120&coordinates.latitude=52.493575:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /stops</pre>
</body>
</html>
[OK]
------------------------------------------------------------------------------
Accessing https://3.vbb.transport.rest/stops/all:
{"error":true,"msg":"id must be an IBNR"}[OK]
------------------------------------------------------------------------------
Accessing https://3.vbb.transport.rest/lines/531:
{"error":true,"msg":"Line not found."}[OK]
------------------------------------------------------------------------------
Accessing https://3.vbb.transport.rest/journeys?from=…&to=…&results=3&bus=false&tickets=true:
{"error":true,"msg":"from must be an IBNR"}[OK]
------------------------------------------------------------------------------
Accessing https://3.vbb.transport.rest/trips/1|32082|1|86|26062017?lineName=RE7:
{"error":true,"msg":"HAFAS error: HCI Service: problems during service execution"}[OK]
------------------------------------------------------------------------------

For testing I used this script:

#!/bin/bash

example() {
    url=$1
    shift
    echo "Accessing $url:"
    if curl -s $* $url; then
        echo "[OK]"
    else
        echo "[FAIL]"
    fi
    echo "------------------------------------------------------------------------------"
}

example 'https://3.vbb.transport.rest/stops?query=jungfernheide'
example 'https://3.vbb.transport.rest/stops?query=mehrigndamm&fuzzy=true'
example 'https://3.vbb.transport.rest/stops?weight=9120&coordinates.latitude=52.493575'
example 'https://3.vbb.transport.rest/stops/all'
example 'https://3.vbb.transport.rest/stops/nearby?latitude=52.52725&longitude=13.4123'
example 'https://3.vbb.transport.rest/stops/900000013102'
example 'https://3.vbb.transport.rest/stops/900000013102/departures?direction=900000014101'
example 'https://3.vbb.transport.rest/stops/900000013102/departures?when=tomorrow%206pm&results=3'
example 'https://3.vbb.transport.rest/lines?operator=796&variants=true'
example 'https://3.vbb.transport.rest/lines/531'
example 'https://3.vbb.transport.rest/shapes/1269'
example 'https://3.vbb.transport.rest/journeys?from=900000017104&to=900000017101'
example 'https://3.vbb.transport.rest/journeys?from=900000023201&to.id=900980720&to.name=ATZE%20Musiktheater&to.latitude=52.543333&to.longitude=13.351686'
example 'https://3.vbb.transport.rest/journeys?from=…&to=…&results=3&bus=false&tickets=true'
example 'https://3.vbb.transport.rest/trips/1|32082|1|86|26062017?lineName=RE7'
example 'https://3.vbb.transport.rest/locations?query=Alexanderplatz'
example 'https://3.vbb.transport.rest/locations?query=Pestalozzistra%C3%9Fe%2082%2C%20Berlin&poi=false&stops=false'
example 'https://3.vbb.transport.rest/radar?north=52.52411&west=13.41002&south=52.51942&east=13.41709'
example 'https://3.vbb.transport.rest/maps/bvg-tram' -L -o bvg-tram-map.pdf 
example 'https://3.vbb.transport.rest/logos/tram.svg' -L -o tram.svg 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
derhuerstcommented, Feb 23, 2020

Please reopen if you encounter additional issues related to this.

0reactions
derhuerstcommented, May 9, 2020

FYI I have set up v5.vbb.transport.rest, which has slightly more intuitive route names and documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

15 Highly Successful People Who Failed Before Succeeding
The most successful people have failed at least once. Here're 15 highly successful people who failed, and what you can learn from them....
Read more >
What are some real life examples of one who not being so ...
1. Before Walt Disney built the empire he has today, he was fired by a newspaper editor because "he lacked imagination and had...
Read more >
10 people who didn't give up - The Business Journals
Here are 10 examples of people who succeeded through pure grit: ... and worst failure of her TV career,” and it's not hard...
Read more >
Six famous people who failed before succeeding
Some of the most prominent 'successful failures' that come to mind include: ... fan or not, there's no denying the success of Stephen...
Read more >
6 Stories of Super Successes Who Overcame Failure
They're perfect examples of why failure should never stop you from following your vision. ... Failure is not the alternative to success.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found