Git Product home page Git Product logo

Comments (8)

michalbanin avatar michalbanin commented on August 16, 2024 2

@6ewis you have a few options here:

  1. You can activate a few drivers that will accept rides in the staging env, and complete rides through the env:
  • create fake drivers through the fleet section > drivers tab
  • set them with the "Uride vendor" (which is an auto accept vendor)
  • create a few fake vehicles through the fleet section > vehicles tab
  • in the main dashboard, switch to the vehicles tab > click on a vehicle > switch to the "driver" tab > click on "assign driver" and select one of the drivers
  • after you create a ride, it should go to one of the drivers automatically. if it doesn't (drivers are located to far for example) you can force the ride to one of the drivers.
  • after a ride is assigned to a driver you can manually complete or cancel the ride through the dashboard.
  1. Through API
  • create rides through the clients API so it will mimic locomotion/ through locomotion
  • ride and driver states will be handled through the Autofleet APIs - instructions are detailed in the docs

from locomotion.

michalbanin avatar michalbanin commented on August 16, 2024 1

Unfortunately there is no way to simulate a driver's real time location in the staging env. In your testing env (production) we can activate fake drivers that will move around and simulate drivers completing rides.
When completing rides through the Control Center, you can only complete and not mark arrived.

from locomotion.

OmerGery avatar OmerGery commented on August 16, 2024

Hey,

  1. Updating driver/ride states is through the fleet manager api ( https://api.autofleet.io/ ) and not ( https://client.staging.eu.autofleet.io/ ). it's out of scope for clients / locomotion to change that
  2. Changing a ride to completed is through arriving/completing stop points , not directly changing the ride state.

from locomotion.

6ewis avatar 6ewis commented on August 16, 2024

About your point #2, Can you clarify how would you do that? What endpoint would you use to generate fake rides, and drivers status to test ? @OmerGery

from locomotion.

uri-jeff avatar uri-jeff commented on August 16, 2024

I was able to update the status of the driver through updating Stop points, thanks for clarifying

One more question regarding ride tracking: Is there a way to simulate the driver's location so I can see the driver moving to the pickup and drop-off points? and through which API can I get the driver's location - in real time?

Thanks @michalbanin

from locomotion.

uri-jeff avatar uri-jeff commented on August 16, 2024

@michalbanin @OmerGery Can you please take a look? Also, can I update the status of stop points to "arrived"? Currently I can only update -> "completed" through admin panel

from locomotion.

6ewis avatar 6ewis commented on August 16, 2024

@michalbanin basically we have to go back to use the production environment to test

from locomotion.

michalbanin avatar michalbanin commented on August 16, 2024

Only if you want to simulate real time location
Another option is to connect as drivers to the staging env and complete trips through the driver app (and move around with the app).
How to do this:

  1. Register yourself as a driver in the staging env (fleet section > drivers tab)
  2. Download the uride driver app
  3. Access this link, it will open the driver app
  4. Log in using the phone number you registered
  5. Create trips and complete them through the driver app

from locomotion.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.