src/ddb-python-script/driver-accept-trip.py [33:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tripAcceptInfo = {
    "riderid"  : rider_id,
    "tripinfo" : trip_info,
    "VENDOR_ID" : vendor_id,
    "PICKUP_LONGITUDE" : pickup_longitude,
    "PICKUP_LATITUDE" : pickup_latitude,
    "TRIP_TYPE" : 2,
    "STORE_AND_FWD_FLAG" : "N",
    "CAB_TYPE_ID" : driver_info['vehicle_details']['type'],
    "DRIVER_NAME" : driver_info['driver_name'],
    "VEHICLE_ID" : driver_info['vehicle_details']['id'],
    "DRIVER_ID" : driver_info['driver_id'],
    "DRIVER_EMAIL" : driver_info['driver_email'],
    "DRIVER_MOBILE" : driver_info['driver_mobile'],
    "DriverDetails" : {
        "Name" : driver_info['driver_name'],
        "Vehicle Details" : {
            "id" : driver_info['vehicle_details']['id'],
            "type": driver_info['vehicle_details']['type']
        }
    },
    "Status" : "InProgress"
}

print("Trip accept information ="+ json.dumps(tripAcceptInfo, indent=2))

response = updateTripInfo(tripAcceptInfo, "Booked")
print("Trip accept information has been updated to Trips table")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/taxi-ride-workflow/driver-accept-trip/driver-accept-trip.py [42:69]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    tripAcceptInfo = {
        "riderid"  : rider_id,
        "tripinfo" : trip_info,
        "VENDOR_ID" : vendor_id,
        "PICKUP_LONGITUDE" : pickup_longitude,
        "PICKUP_LATITUDE" : pickup_latitude,
        "TRIP_TYPE" : 2,
        "STORE_AND_FWD_FLAG" : "N",
        "CAB_TYPE_ID" : driver_info['vehicle_details']['type'],
        "DRIVER_NAME" : driver_info['driver_name'],
        "VEHICLE_ID" : driver_info['vehicle_details']['id'],
        "DRIVER_ID" : driver_info['driver_id'],
        "DRIVER_EMAIL" : driver_info['driver_email'],
        "DRIVER_MOBILE" : driver_info['driver_mobile'],
        "DriverDetails" : {
            "Name" : driver_info['driver_name'],
            "Vehicle Details" : {
                "id" : driver_info['vehicle_details']['id'],
                "type": driver_info['vehicle_details']['type']
            }
        },
        "Status" : "InProgress"
    }
    
    print("Trip accept information ="+ json.dumps(tripAcceptInfo, indent=2))
    
    response = updateTripInfo(tripAcceptInfo, "Booked")
    print("Trip accept information has been updated to Trips table")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



