hove-io / navitia

The open source software to build cool stuff with locomotion
https://www.navitia.io/
GNU Affero General Public License v3.0
433 stars 126 forks source link

Taxi support #3208

Open thegreathir opened 4 years ago

thegreathir commented 4 years ago

As I recognized from your docs at this point navitia can not read the Taxi routes from gtfs. Actually the Taxi service that is supported by navitia is just like car with some additional delay. At first I want to know is it true? Can I feed navitia with Taxi lines and get multi modal plans that contains Taxi transfers? The challenge is that Taxi does not have stops (start and last only) and passenger may alight everywhere during the trip. This feature is supported by gtfs-flex extension described here And next do you have plan to support this kind of journeys?

prhod commented 4 years ago

Hello, First let me apologize for the delay :pray: I can't answer for the Taxi as a Car in navitia, but I can tell you it's possible to feed navitia with a "taxi line" using the physical_mode "Taxi" : https://github.com/CanalTP/ntfs-specification/blob/master/ntfs_fr.md#physical_modestxt-requis (sorry the doc is still in french) First, there is no support for GTFS-Flex yet (and no short terms plan about that) If you want to specify an area and not specific stops, it's possible to specify a geographic zone for an address to address travel using OnDemandTransport feature. There is also a combination of regular stops and geographic zones as described here: https://github.com/CanalTP/ntfs-specification/blob/master/ntfs_fr.md#ligne-mixte

I'm not 100% sure, but if you make an address to address travel like this, no transfers are available. You may need to create a (very) complex taxi route to have high quality responses.

Can you tell us more precisely your need about this kind of feature ?

xlqian commented 4 years ago

Hi,

As you have already noticed, the taxi monde in Navitia is just as simple as a car mode plus some delay. This is true when the street network calculator is Kraken(our homemade one), however, when it comes to Asgard(https://github.com/CanalTP/asgard), it will privilege lanes that are reserved for taxis. So the route returned by Asgard will quite different from the one returned from Kraken.

That's all that taxi does