Comments (4)
Sure, if an API is available! Some long distance buses are in the DB system, but not the more interesting ones (e.g. Mein Fernbus, Flix...)
One problem with buses is that they're reservation only. So if a bus is full, what should happen for departure and trip queries? I guess an API, public-transport-enabler and the apps using pte would need to separate usecases by people who don't already have a ticket/reservation and people who do. The same would be needed for flights by the way.
from public-transport-enabler.
I'm not sure about other providers, but there are some long-distance buses included in the Texas provider.
I think that the main obstacle to getting this to work is the lack of APIs, since (at least in the US) most long-distance buses are run by private companies, while city metros are run by city agencies. Private companies are probably more reluctant to release a public API.
from public-transport-enabler.
@juliuste has covered some European long-distance bus providers using JavaScript, but I'm not sure if the clients are up to date.
deinbus
– JavaScript client for the deinbus coach travel API.ecolines
– JavaScript client for the Ecolines API.eurolines-de
– JavaScript client for the eurolines.de API.meinfernbus
– JavaScript client for the Meinfernbus/FlixBus API.nettbuss-stations
– A list of Nettbuss.se stations.ouibus
– JavaScript client for the OUIBUS API.
from public-transport-enabler.
Disclaimer: eurolines-de
is not an API client but rather a scraper. The other three I made (ouibus, deinbus, flixbus/meinfernbus) use API endpoints and should be up to date, though.
from public-transport-enabler.
Related Issues (20)
- NEWYORK: java.lang.IllegalArgumentException: Unhandled error message: The region us-ny doesn't exists
- VVS Germany in Transportr doesnt work anymore
- Filtering by transport company
- DB: java.lang.RuntimeException: FAIL CGI: server could not be reached
- VVO: java.io.IOException: unexpected end of stream on Connection{efaproxy.fahrinfo.uptrade.de:80, proxy=DIRECT hostAddress=efaproxy.fahrinfo.uptrade.de/185.5.24.52:80 cipherSuite=none protocol=http/1.1}
- FRANCESOUTHEAST: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
- SNCB: java.lang.RuntimeException: CLIENTVERSION HOT 1
- SPAIN: java.lang.IllegalArgumentException: Unhandled error id: no_destination
- Poland, java.lang.IllegalArgumentException: Unhandled error message: The region pl doesn't exists HOT 1
- SE: java.lang.RuntimeException: FAIL HAFAS Kernel: No connection found after post filtering
- FRANCENORTHWEST: de.schildbach.pte.exception.BlockedException: https://api.navitia.io/v1/coverage/fr-nw/journeys?from=-1.559285%3B47.254863&to=-1.63126%3B47.223659&datetime=20230505T123559&datetime_represents=departure&min_nb_journeys=6&depth=0&walking_speed=1.344
- Issue in Building library on jitpack HOT 1
- VGN: UNKNOWN_TO
- SNCB: java.lang.RuntimeException: CLIENTVERSION HOT 1
- Data for Madrid (Spain) is missing metro
- OTP integration
- Renfe Cercanias (Spanish commuter rail service) is missing
- GVH: de.schildbach.pte.exception.UnexpectedRedirectException: https://app.efa.de/mdv_server/app_gvh/XSLT_TRIP_REQUEST2?outputFormat=XML&language=de&stateless=1&coordOutputFormat=WGS84[DD.ddddd]&coordOutputFormatTail=7&sessionID=0&requestID=0&coordListOutputFormat=string&type_origin=coord&name_origin=9.7214370%3A52.3675720%3AWGS84%5BDD.ddddd%5D&type_destination=coord&name_destination=9.7204530%3A52.3679780%3AWGS84%5BDD.ddddd%5D&itdDate=20230702&itdTime=1258&itdTripDateTimeDepArr=dep&calcNumberOfTrips=6&ptOptionsActive=1&itOptionsActive=1&routeType=LEASTTIME&changeSpeed=normal&includedMeans=checkbox&inclMOT_0=on&inclMOT_14=on&inclMOT_15=on&inclMOT_16=on&inclMOT_0=on&inclMOT_13=on&inclMOT_18=on&inclMOT_1=on&inclMOT_2=on&inclMOT_3=on&inclMOT_4=on&inclMOT_5=on&inclMOT_6=on&inclMOT_7=on&inclMOT_17=on&inclMOT_19=on&inclMOT_9=on&inclMOT_8=on&inclMOT_10=on&useProxFootSearch=1&trITMOTvalue100=10&locationServerActive=1&useRealtime=1&nextDepsPerLeg=1 -> null HOT 3
- VOR: java.lang.RuntimeException: AUTH HCI Core: Authorization fail HOT 1
- BRITISHCOLUMBIA: java.lang.IllegalArgumentException: Unhandled error message: The region ca-bc doesn't exists HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from public-transport-enabler.