Create Task
This api allows you to create a Task for your project app.
The above is the sample request data for Pick/Drop Task.
Parameters
Requires
Values
Description
apikey
yes
pickup
Mandatory if your task is a pickup task.
"pickup": {"lnglat": [80.2707,13.0828657],"address": "Adyar"} lnglat = [longitude, latitude],Address = “your complete address”
The pickup is used when the api is to create a pickup task. If the task is for both the pickup and drop then pickup and drop both were given.
drop
Mandatory if your task is drop task.
"drop":{"lnglat": [80.6488,13.8774545],"address": "Adyar"} Lnglat = [your lnglat values],Address = “your complete address”
The drop is used when the api is used to create a drop task. If the task is for both the pickup and drop then pickup and drop both were given.
type
yes
1 = if the task is pickup 2. If the task is drop. 3. If the task is pickup and drop.
The type indicates the task type.
order_id
Not mandatory
ORD123456
This is used to linkup between your order id and created task.
notes
Not mandatory
Some Notes
The notes will be send to the driver if any.
time
Not mandatory
Time in UTC ISO format(2010-10-12T08:50Z)
The time will indicate the task created time.
customer
Not mandatory
name: name of contact person, mobile: mobile number
The name and mobile number of the customer.
auto_assign
Not mandatory
If set to true, then the task will be assigned to the nearest available driver automatically.
RESPONSE:
Last updated