schildbach / public-transport-enabler

Unleash public transport data in your Java project.
https://groups.google.com/forum/#!forum/public-transport-enabler-discuss
GNU General Public License v3.0
388 stars 133 forks source link

Add API Andalusia #122

Open tenminutemail opened 7 years ago

tenminutemail commented 7 years ago

Hi,

I found this API for Andalusia; what should I do to add it here?

patkan commented 7 years ago

Generally you would have to implement a Provider for the API. If it belongs to a certain family like EFA, then you could just inherit from the respective AbstractProvider.

However, if I did not miss anything in the API-description, then it does not provide trip planning. This however would be needed for it to be really useful. Otherwise you could search or ask if they also provide a GTFS-file. If yes you could ask Navitia if they could integrate it into the Spain provider. (As far as I see Navitia currently does not handle Andalusia.)

EDIT: I read some more and the App that is published by the consorcio seems to do trip planning. It would be interesting to know how they do it. (But propbably they just included an engine for this into the app.) The API has some settings that control route-planning, but I can see no interface for querying a trip.