maasglobal / maas-tsp-api

WhimApp TSP (Transport Service Provider) Open API
https://maasglobal.github.io/
MIT License
16 stars 18 forks source link

Refine existing and add car sharing and rental car MermaidJS state diagrams #71

Closed huksley closed 4 years ago

huksley commented 4 years ago

Based on #67 so it need to be merged first

Updated existing state flows and added new car sharing and rental car state diagrams Also positioning it from top to bottom not from left to right

car-sharing

docked-bike

taxi

car-rental

bike

iaforek commented 4 years ago

ALD which is shared car uses RESERVED status and then it goes to ACTIVATED straight away.

iaforek commented 4 years ago

ARRIVED state is not supported by all taxis. There is some distance hack in BE which actually flicks taxi status to ACTIVATED based on proximity it works like this:

huksley commented 4 years ago

@iaforek Good find, fixed ´RESERVED´ for shared cars. Regarding taxis, yeah, those are some sort of the hacks, but best case scenario is to have native ARRIVED state.