Get Agent By Lat Long
                 Author: Rohit Agnihotri 
                 29 views 
            
        
                                            GET
                                            Get Agent by lat long 
                                        
                                     {{URL}}/api/get_all_agents?latitude=30.7333&longitude=76.7794
                                    
                                    Get all agent from location
HEADERS
                                        Shortcode
                                            code
                                            None
                                        Example Request
                                    
                                    - Get all agent from location
 
                                            Example Response
                                        
                                                                                            {- data: {
- id: 3
 - agent_id: "282856"
 - team_id: 1
 - name: "Gurvinder"
 - profile_picture: "assets/client_00000051/agents5fedb209f1eea.jpeg/Ec9WxFN1qAgIGdU2lCcatJN5F8UuFMyQvvb4Byar.jpg"
 - type: "Employee"
 - vehicle_type_id: 1
 - make_model: null
 - plate_number: null
 - phone_number: "+919781316158"
 - color: null
 - is_activated: 0
 - is_available: 1
 - is_approved: 1
 - device_type: "android"
 - device_token: "e-VOPEnrRL2G64-gmuvFcF:APA91bEk-QnBLGxBMF7Y_fe2Ui-2hETaEJYNoTP_D9yI_yrUon5C_5lSICRbvnqloLLhqpOBWatNprjksj6j29rYZoHr8Kf6Tw9icIBJbTzpd0q97C1zeS4HDYsyzxURj8hPjZ5DLNi3"
 - access_token: "eyJ0eXAiOiJqd3QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzQyMTkwNzcsImV4cCI6MTY3Njg5NzQ3NywiaXNzIjoiY29kZWJyZXdJbm5vdmF0aW9uIn0.b1UEYZOBkp-dAcJ0Ws_T3y2IbS4qr_BtO_O-NLeCCR8"
 - created_at: "2022-09-15T17:21:37.000000Z"
 - updated_at: "2023-01-20T18:21:17.000000Z"
 - cash_at_hand: "0.00"
 - uid: null
 - customer_type_id: null
 - deleted_at: null
 - razorpay_contact_json: null
 - razorpay_bank_json: null
 - is_busy: 0
 - distance: 0
 - distance_type: "km"
 - arrival_time: "0 min"
 - image_url: ""
 - agent_cash_at_hand: -1304.5
 - agentlog: {
- id: 1729
 - agent_id: 3
 - current_task_id: null
 - lat: "30.73331330"
 - long: "76.77941670"
 - battery_level: 100
 - os_version: "13"
 - app_version: "1.0"
 - current_speed: null
 - on_route: 0
 - created_at: "2023-01-20T18:46:24.000000Z"
 - updated_at: "2023-01-20T18:46:24.000000Z"
 - device_type: "Android"
 - heading_angle: "90.00000000"
 - distance_covered: null
 - is_active: 1
 
} - vehicle_type: {
- id: 1
 - name: "onfoot"
 - icon: null
 - storage_width: null
 - storage_height: null
 - storage_length: null
 - fuel_cost: null
 - created_at: null
 - updated_at: null
 
} - agent_payment: [
] - wallet: {
- id: 3
 - holder_type: "App\Model\Agent"
 - holder_id: 3
 - name: "Default Wallet"
 - slug: "default"
 - uuid: "8b20fd61-3dd0-4f7b-8a89-f84aa95abbd5"
 - description: null
 - meta: [
] - balance: "0"
 - decimal_places: 2
 - created_at: "2022-09-15T17:21:38.000000Z"
 - updated_at: "2022-09-15T17:21:38.000000Z"
 
} - complete_order: [
- {
- id: 35
 - order_number: "04649096"
 - customer_id: null
 - driver_id: 3
 - scheduled_date_time: null
 - key_value_set: null
 - conditions_tag_team: null
 - conditions_tag_driver: null
 - recipient_phone: null
 - Recipient_email: null
 - task_description: null
 - images_array: ""
 - auto_alloction: "m"
 - order_time: "2023-01-16 07:37:15"
 - order_type: "now"
 - created_at: "2023-01-16T13:07:15.000000Z"
 - updated_at: "2023-01-16T14:37:09.000000Z"
 - status: "completed"
 - order_status: "Task Status"
 - note: null
 - cash_to_be_collected: null
 - base_price: "10.00"
 - base_duration: "10"
 - base_distance: "10.00"
 - base_waiting: "10"
 - duration_price: "5.00"
 - waiting_price: "8.00"
 - distance_fee: "5.00"
 - cancel_fee: "2.00"
 - agent_commission_percentage: 5
 - agent_commission_fixed: 6
 - freelancer_commission_percentage: 5
 - freelancer_commission_fixed: 4
 - actual_time: "0.00"
 - actual_distance: "0.00"
 - order_cost: "10.00"
 - driver_cost: "6.50"
 - proof_image: null
 - proof_signature: null
 - unique_id: "naoH2p"
 - net_quantity: 0
 - call_back_url: null
 - completion_otp: null
 - type: 0
 - friend_name: null
 - friend_phone_number: null
 - total_other_taxes: null
 - request_type: "P"
 - is_comm_settled: 0
 - is_restricted: 0
 - vendor_id: null
 - order_vendor_id: null
 - sync_order_id: null
 - dbname: null
 - toll_fee: "0.00"
 - vendor_name: null
 - available_seats: 0
 - no_seats_for_pooling: 0
 - is_cab_pooling: 0
 
} - {
- id: 37
 - order_number: "61276719"
 - customer_id: 16
 - driver_id: 3
 - scheduled_date_time: null
 - key_value_set: null
 - conditions_tag_team: null
 - conditions_tag_driver: null
 - recipient_phone: null
 - Recipient_email: null
 - task_description: null
 - images_array: ""
 - auto_alloction: "m"
 - order_time: "2023-01-16 09:50:48"
 - order_type: "now"
 - created_at: "2023-01-16T15:20:48.000000Z"
 - updated_at: "2023-01-16T16:36:38.000000Z"
 - status: "completed"
 - order_status: "Task Status"
 - note: ""
 - cash_to_be_collected: null
 - base_price: "10.00"
 - base_duration: "10"
 - base_distance: "10.00"
 - base_waiting: "10"
 - duration_price: "5.00"
 - waiting_price: "8.00"
 - distance_fee: "5.00"
 - cancel_fee: "2.00"
 - agent_commission_percentage: 5
 - agent_commission_fixed: 6
 - freelancer_commission_percentage: 5
 - freelancer_commission_fixed: 4
 - actual_time: "11.00"
 - actual_distance: "2.91"
 - order_cost: "15.00"
 - driver_cost: "6.75"
 - proof_image: null
 - proof_signature: null
 - unique_id: "ZKdnFz"
 - net_quantity: 0
 - call_back_url: null
 - completion_otp: null
 - type: 0
 - friend_name: null
 - friend_phone_number: null
 - total_other_taxes: null
 - request_type: "P"
 - is_comm_settled: 0
 - is_restricted: 0
 - vendor_id: null
 - order_vendor_id: null
 - sync_order_id: null
 - dbname: null
 - toll_fee: "0.00"
 - vendor_name: null
 - available_seats: 0
 - no_seats_for_pooling: 0
 - is_cab_pooling: 0
 
} - {
- id: 40
 - order_number: "39666849"
 - customer_id: 19
 - driver_id: 3
 - scheduled_date_time: null
 - key_value_set: null
 - conditions_tag_team: null
 - conditions_tag_driver: null
 - recipient_phone: null
 - Recipient_email: null
 - task_description: null
 - images_array: ""
 - auto_alloction: "m"
 - order_time: "2023-01-16 16:30:00"
 - order_type: "schedule"
 - created_at: "2023-01-16T15:54:47.000000Z"
 - updated_at: "2023-01-16T17:01:03.000000Z"
 - status: "completed"
 - order_status: "Task Status"
 - note: null
 - cash_to_be_collected: null
 - base_price: "10.00"
 - base_duration: "10"
 - base_distance: "10.00"
 - base_waiting: "10"
 - duration_price: "5.00"
 - waiting_price: "8.00"
 - distance_fee: "5.00"
 - cancel_fee: "2.00"
 - agent_commission_percentage: 5
 - agent_commission_fixed: 6
 - freelancer_commission_percentage: 5
 - freelancer_commission_fixed: 4
 - actual_time: "0.00"
 - actual_distance: "0.00"
 - order_cost: "10.00"
 - driver_cost: "6.50"
 - proof_image: null
 - proof_signature: null
 - unique_id: "TqTmQJ"
 - net_quantity: 0
 - call_back_url: null
 - completion_otp: null
 - type: 0
 - friend_name: null
 - friend_phone_number: null
 - total_other_taxes: null
 - request_type: "P"
 - is_comm_settled: 0
 - is_restricted: 0
 - vendor_id: null
 - order_vendor_id: null
 - sync_order_id: null
 - dbname: null
 - toll_fee: "0.00"
 - vendor_name: null
 - available_seats: 0
 - no_seats_for_pooling: 0
 - is_cab_pooling: 0
 
} - {
- id: 41
 - order_number: "56873704"
 - customer_id: 20
 - driver_id: 3
 - scheduled_date_time: null
 - key_value_set: null
 - conditions_tag_team: null
 - conditions_tag_driver: null
 - recipient_phone: null
 - Recipient_email: null
 - task_description: null
 - images_array: ""
 - auto_alloction: "m"
 - order_time: "2023-01-16 10:55:00"
 - order_type: "schedule"
 - created_at: "2023-01-16T15:57:12.000000Z"
 - updated_at: "2023-01-16T16:37:30.000000Z"
 - status: "completed"
 - order_status: "Task Status"
 - note: ""
 - cash_to_be_collected: null
 - base_price: "10.00"
 - base_duration: "10"
 - base_distance: "10.00"
 - base_waiting: "10"
 - duration_price: "5.00"
 - waiting_price: "8.00"
 - distance_fee: "5.00"
 - cancel_fee: "2.00"
 - agent_commission_percentage: 5
 - agent_commission_fixed: 6
 - freelancer_commission_percentage: 5
 - freelancer_commission_fixed: 4
 - actual_time: "0.00"
 - actual_distance: "0.00"
 - order_cost: "10.00"
 - driver_cost: "6.50"
 - proof_image: null
 - proof_signature: null
 - unique_id: "iACaHD"
 - net_quantity: 0
 - call_back_url: null
 - completion_otp: null
 - type: 0
 - friend_name: null
 - friend_phone_number: null
 - total_other_taxes: null
 - request_type: "P"
 - is_comm_settled: 0
 - is_restricted: 0
 - vendor_id: null
 - order_vendor_id: null
 - sync_order_id: null
 - dbname: null
 - toll_fee: "0.00"
 - vendor_name: null
 - available_seats: 0
 - no_seats_for_pooling: 0
 - is_cab_pooling: 0
 
} - {
- id: 43
 - order_number: "67294136"
 - customer_id: 22
 - driver_id: 3
 - scheduled_date_time: null
 - key_value_set: null
 - conditions_tag_team: null
 - conditions_tag_driver: null
 - recipient_phone: null
 - Recipient_email: null
 - task_description: null
 - images_array: ""
 - auto_alloction: "m"
 - order_time: "2023-01-16 12:55:00"
 - order_type: "schedule"
 - created_at: "2023-01-16T17:55:23.000000Z"
 - updated_at: "2023-01-16T17:56:56.000000Z"
 - status: "completed"
 - order_status: "Task Status"
 - note: null
 - cash_to_be_collected: null
 - base_price: "10.00"
 - base_duration: "10"
 - base_distance: "10.00"
 - base_waiting: "10"
 - duration_price: "5.00"
 - waiting_price: "8.00"
 - distance_fee: "5.00"
 - cancel_fee: "2.00"
 - agent_commission_percentage: 5
 - agent_commission_fixed: 6
 - freelancer_commission_percentage: 5
 - freelancer_commission_fixed: 4
 - actual_time: "2587.00"
 - actual_distance: "2491.01"
 - order_cost: "25300.05"
 - driver_cost: "1271.00"
 - proof_image: null
 - proof_signature: null
 - unique_id: "uqq9L7"
 - net_quantity: 0
 - call_back_url: null
 - completion_otp: null
 - type: 0
 - friend_name: null
 - friend_phone_number: null
 - total_other_taxes: null
 - request_type: "P"
 - is_comm_settled: 0
 - is_restricted: 0
 - vendor_id: null
 - order_vendor_id: null
 - sync_order_id: null
 - dbname: null
 - toll_fee: "0.00"
 - vendor_name: null
 - available_seats: 0
 - no_seats_for_pooling: 0
 - is_cab_pooling: 0
 
} - {
- id: 47
 - order_number: "02742570"
 - customer_id: 5
 - driver_id: 3
 - scheduled_date_time: null
 - key_value_set: null
 - conditions_tag_team: null
 - conditions_tag_driver: null
 - recipient_phone: null
 - Recipient_email: null
 - task_description: null
 - images_array: ""
 - auto_alloction: "m"
 - order_time: "2023-01-20 09:26:40"
 - order_type: "now"
 - created_at: "2023-01-20T14:56:40.000000Z"
 - updated_at: "2023-01-20T18:23:01.000000Z"
 - status: "completed"
 - order_status: ""
 - note: ""
 - cash_to_be_collected: null
 - base_price: "10.00"
 - base_duration: "10"
 - base_distance: "10.00"
 - base_waiting: "10"
 - duration_price: "5.00"
 - waiting_price: "8.00"
 - distance_fee: "5.00"
 - cancel_fee: "2.00"
 - agent_commission_percentage: 5
 - agent_commission_fixed: 6
 - freelancer_commission_percentage: 5
 - freelancer_commission_fixed: 4
 - actual_time: "13.00"
 - actual_distance: "4.95"
 - order_cost: "25.00"
 - driver_cost: "7.25"
 - proof_image: null
 - proof_signature: null
 - unique_id: "3rwQop"
 - net_quantity: 0
 - call_back_url: null
 - completion_otp: null
 - type: 0
 - friend_name: null
 - friend_phone_number: null
 - total_other_taxes: null
 - request_type: "P"
 - is_comm_settled: 0
 - is_restricted: 0
 - vendor_id: null
 - order_vendor_id: null
 - sync_order_id: null
 - dbname: null
 - toll_fee: "0.00"
 - vendor_name: null
 - available_seats: 0
 - no_seats_for_pooling: 0
 - is_cab_pooling: 0
 
} 
] 
} 
}
                                                
                                            Still stuck? How can we help?
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.