Answer the question
In order to leave comments, you need to log in
How to make automatic distribution of orders?
Hey!
Everyone has probably seen how taxi order systems work.
It used to be like this:
1. A client calls any number, let's say 777, and orders a taxi for a while.
2. The operator accepts the order and starts looking for drivers who are on the line by radio or by phone.
3. The one who responded or the one who was next in line, according to the dispatcher's piece of paper, takes the order and goes.
Now it's like this:
1. The client calls and makes an order.
2. The operator accepts the order, and then the program itself starts looking for drivers on the line,
then filters start working, such as distance, rating, type of car, etc.
3. The driver on his smartphone selects this order and drives to it.
So, is it possible to write such a distribution system in php + mysql?
1. Website, web application for the operator, php, html + css, js + ajax, so as not to refresh the page.
2. Application for the driver on phonegap, ( I don't know how to send a request to the server , http request or ajax? ) Or ideally it looks like: http request that checks in the orders table for new records, and then displays it on the mobile screen applications?
I know html+css well, and a bit of php. I would like to know where to dig and whether my path is right.
And I want to add, I'm not writing a taxi service, but something else, if there are programmers who are interested in it, and those who can write it, I would take you to share.
Answer the question
In order to leave comments, you need to log in
Ideally: you need TK and dig towards mathhelpplanet.com/static.php?p=smo-s-ozhidaniem-o...
Can. But. It is better to use an intermediate server that will do this in real time, not through the database. Because php will need to raise the state of the drivers, their coordinates, etc. each time. for every sneeze, I think it's not very cost-effective.
Hello!
These tasks are easily solved by ready-made taxi programs.
that work reliably.
for example - www.gootax.pro
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question