একটি অন-ডিমান্ড ট্রিপ কি?
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই বিভাগে ডকুমেন্টেশন দেখায় কিভাবে Google ম্যাপস মোবিলিটি অন-ডিমান্ড ট্রিপ পরিষেবা ব্যবহার করে ট্রিপ তৈরি এবং কাজ করতে হয়। It assumes familiarity with the following:
আপনি যে TripService
ব্যবহার করবেন তা gRPC এবং REST এর জন্য উপলব্ধ। সরলতার জন্য, ক্ষেত্রের উল্লেখগুলি জিআরপিসি কনভেনশন অনুসরণ করে।
অন-ডিমান্ড পরিষেবার জন্য ফ্লিট ইঞ্জিনে, একটি ট্রিপ হল এক ধরনের যাত্রা যা আপনার ভোক্তাদের কাছ থেকে খাদ্য সরবরাহ বা রাইডের অনুরোধ পূরণের মডেল। একটি ট্রিপের একটি স্ট্যাটাস থাকে যা আপনি ফ্লিট ইঞ্জিনে রিপোর্ট করেন যখন যাত্রার বিকাশ হয়, যেমন NEW
, ENROUTE_TO_PICKUP
, এবং আরও অনেক কিছু৷ ট্রিপ স্ট্যাটাস গাড়ির জন্য নির্ধারিত জিও-অবস্থিত ওয়েপয়েন্টের সাথে মিলে যায় এবং ফ্লিট ইঞ্জিন আপনার করা প্রতিটি ট্রিপ আপডেটের সাথে এই যানবাহনের ওয়েপয়েন্টগুলিকে সংশোধন করে। ট্রিপ এবং যানবাহনের সাথে তাদের সম্পর্ক সম্পর্কে আরও জানতে ফ্লিট ইঞ্জিনের প্রয়োজনীয়তাগুলিতে চাহিদাপূর্ণ ট্রিপগুলি দেখুন।
একটি ভ্রমণ জীবন
ফ্লিট ইঞ্জিনে প্রতিটি ট্রিপ ট্র্যাক করার জন্য, আপনাকে প্রথমে একটি Trip
সত্তা তৈরি করতে হবে। রেফারেন্সের জন্য হয় gRPC বা REST দেখুন।
নিচের সারণীটি আপনার সিস্টেমে তৈরি একটি ট্রিপের এন্ড-টু-এন্ড ফ্লো এবং ফ্লিট ইঞ্জিনে এর জীবনচক্র পর্যায়ের উদাহরণ বর্ণনা করে। এটি ধরে নেয় যে আপনি ফ্লিট ইঞ্জিন সেট আপ করেছেন এবং ড্রাইভার অ্যাপে অবস্থান আপডেট সক্ষম করে ট্রিপে বরাদ্দ করার জন্য একটি যান রয়েছে৷ See Driver SDK: On-demand trips .
1 | বুকিং অনুরোধ গ্রহণ করুন. | একটি ফ্লিট ইঞ্জিন ট্রিপ শুরু হওয়ার আগে, আপনার বুকিং সিস্টেম প্রথমে আপনার অ্যাপ বা অন্য বুকিং সিস্টেমের মাধ্যমে একজন ভোক্তার কাছ থেকে রাইড বা ডেলিভারির জন্য একটি অনুরোধ পায়৷ আপনার সিস্টেম তারপর CreateTrip ব্যবহার করে প্রয়োজনীয় ক্ষেত্রগুলির সাথে ট্রিপ সত্তা তৈরি করে, যেমন পিকআপ অবস্থান। এটি এই সময়ে অন্যান্য ক্ষেত্রগুলিও সেট করতে পারে, যেমন যাত্রী এবং ড্রপঅফ অবস্থান, বা এটি একটি গাড়ি বরাদ্দ না করা পর্যন্ত অপেক্ষা করতে পারে। See Create a single-destination trip . |
2 | গাড়ি বরাদ্দ করুন। | আপনি হয় আপনার সিস্টেমের মধ্যে সরাসরি ট্রিপের জন্য যানবাহন বরাদ্দ করতে পারেন এবং ফ্লিট ইঞ্জিনে অ্যাসাইনমেন্ট রিপোর্ট করতে পারেন, অথবা আপনি যান অনুসন্ধানের জন্য অনুসন্ধান যানবাহন পরিষেবা ব্যবহার করতে পারেন, যাত্রা সম্পূর্ণ করার জন্য সেরা যানটি খুঁজে পেতে ট্রিপ এবং যানবাহন উভয় বৈশিষ্ট্য দ্বারা ফিল্টার করতে পারেন৷ আপনার অনুসন্ধান ব্যাসার্ধের মধ্যে থাকা যেকোনো অনলাইন গাড়ি ড্রাইভার SDK দ্বারা প্রদত্ত অবস্থান আপডেটের মাধ্যমে তাদের নৈকট্যকে পরিচিত করে। একবার SearchVehicle আপনার ট্রিপের সাথে মেলে এমন একটি গাড়ি ফেরত দিলে, আপনার সিস্টেম UpdateTrip এন্ডপয়েন্টে কল করে NEW ট্রিপে আপনার নির্ধারিত গাড়ির আইডি রিপোর্ট করতে। |
3 | ট্রিপ আপডেট করুন। | ড্রাইভার একবার ট্রিপ গ্রহণ করে এবং পিকআপ অবস্থানে নেভিগেট করা শুরু করলে, আপনার সিস্টেম ট্রিপ স্ট্যাটাস NEW থেকে ENROUTE_TO_PICKUP এ আপডেট করে। আপনি অ্যাপ থেকে আপনার ব্যাকএন্ডে সরাসরি সংযোগের মাধ্যমে বা ফ্লিট ইঞ্জিনের মাধ্যমে, যেটি ড্রাইভার SDK থেকে যানবাহনের অবস্থান আপডেটের একটি চলমান স্ট্রিম গ্রহণ করে, পুরো যাত্রা জুড়ে গাড়ির অবস্থান পোল করা চালিয়ে যান। আপনার সিস্টেম তারপর ফ্লিট ইঞ্জিনে প্রতিটি যাত্রা মাইলফলক রিপোর্ট করে, যা সেই অনুযায়ী গাড়ির ওয়েপয়েন্ট তালিকা আপডেট করে। |
4 | ভোক্তাদের সাথে যাত্রা ভাগ করুন। | ফ্লিট ইঞ্জিন ট্রিপের বিশদ বিবরণ এবং গাড়ির অবস্থান উপভোক্তা SDK-এর কাছে উপলব্ধ করে, যা একজন শ্রোতাকে ট্রিপের আপডেট পেতে এবং সেগুলিকে ভোক্তা অ্যাপে প্রদর্শন করতে ব্যবহার করে। ফ্লিট ইঞ্জিন স্বয়ংক্রিয়ভাবে ETA, অবশিষ্ট দূরত্ব, রুট এবং অবশিষ্ট যানবাহনের পথপয়েন্ট আপডেট করে। আরও তথ্যের জন্য অন-ডিমান্ড ট্রিপের জন্য শেয়ার যাত্রা দেখুন। |
5 | সম্পূর্ণ ট্রিপ. | একবার গাড়িটি ট্রিপের গন্তব্যের ওয়েপয়েন্টে পৌঁছালে এবং আপনার ড্রাইভার একটি সফল ট্রিপের ইঙ্গিত দেয়, আপনার সিস্টেম ফ্লিট ইঞ্জিনে TripStatus COMPLETE সেট করে। মনে রাখবেন, যানবাহনের মতো, ট্রিপ এন্টিটি 7 দিনের জন্য ফ্লিট ইঞ্জিনের মধ্যে সক্রিয় থাকে, স্ট্যাটাস নির্বিশেষে, যে সময়ে সেগুলি সরানো হয়। |
ট্রিপ সিকোয়েন্স ফ্লো
নিম্নলিখিত চিত্রটি এই প্রবাহের আরও বিশদ দৃশ্য দেখায়।

এরপর কি
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis documentation provides a comprehensive guide on utilizing the Google Maps Mobility on-demand trips service for managing and tracking trips.\u003c/p\u003e\n"],["\u003cp\u003eYou should have a foundational understanding of Fleet Engine, Vehicle Basics, and Trip Basics for on-demand services.\u003c/p\u003e\n"],["\u003cp\u003eFleet Engine's \u003ccode\u003eTripService\u003c/code\u003e enables the creation, assignment, updating, and completion of trips through gRPC or REST.\u003c/p\u003e\n"],["\u003cp\u003eTrips represent journeys fulfilling consumer requests, evolving through various statuses like \u003ccode\u003eNEW\u003c/code\u003e, \u003ccode\u003eENROUTE_TO_PICKUP\u003c/code\u003e, and \u003ccode\u003eCOMPLETE\u003c/code\u003e, influencing vehicle waypoints.\u003c/p\u003e\n"],["\u003cp\u003eThe trip lifecycle includes booking, vehicle assignment, status updates, consumer journey sharing, and completion, all managed through Fleet Engine interactions.\u003c/p\u003e\n"]]],[],null,["The documentation in this section shows how to create and work with trips using\nthe Google Maps Mobility on-demand trips service. It assumes familiarity with\nthe following:\n\n- **Fleet Engine** : You should be familiar with Fleet Engine implementation details, request mechanisms, and security. For that, see [What is the Fleet\n Engine service?](/maps/documentation/mobility/fleet-engine/essentials) and the security topics in [Set up Fleet Engine](/maps/documentation/mobility/fleet-engine/essentials/set-up-fleet).\n- **Vehicles basics** for on-demand services. See [Introduction to vehicles](/maps/documentation/mobility/fleet-engine/essentials/vehicles-intro).\n- **Trip basics** for on-demand services. See [On-demand trips](/maps/documentation/mobility/fleet-engine/essentials/trip-intro).\n\nThe `TripService` that you'll use is available for [gRPC](/maps/documentation/mobility/fleet-engine/reference/trips/rpc/maps.fleetengine.v1#tripservice) and [REST](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips).\nFor simplicity sake, field references follow the gRPC convention.\n\nIn Fleet Engine for on-demand services, a trip is a type of journey that models\nthe fulfillment of a food delivery or ride request from your consumers. A trip\nhas a status that you report to Fleet Engine as the journey evolves, such as\n`NEW`, `ENROUTE_TO_PICKUP`, and more. The trip status corresponds to geo-located\nwaypoints assigned to the vehicle, and Fleet Engine modifies these vehicle\nwaypoints with each trip update you make. See [On demand trips](/maps/documentation/mobility/fleet-engine/essentials/trip-intro) in **Fleet\nEngine essentials** for more about trips and their relationship to vehicles.\n\nLife of a trip\n\nIn order to track each trip in Fleet Engine, you must first create a `Trip`\nentity. See either [gRPC](/maps/documentation/mobility/fleet-engine/reference/trips/rpc/maps.fleetengine.v1#maps.fleetengine.v1.Trip) or [REST](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips) for reference.\n\nThe following table describes an example end-to-end flow of a trip created in\nyour system and its lifecycle stages in Fleet Engine. It assumes you have set up\nFleet Engine and have a vehicle to assign to the trip, with location updates\nenabled in the driver app. See [Driver SDK: On-demand trips](/maps/documentation/mobility/driver-sdk/on-demand).\n\n|---|----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Receive booking request.** | Before a Fleet Engine trip begins, your booking system first receives a request for a ride or delivery from a consumer through your app or other booking system. Your system then creates the trip entity using `CreateTrip` with required fields, such as the pickup location. It can also set other fields at this point, such passengers and dropoff location, or wait until it assigns a vehicle. See [Create a single-destination trip](/maps/documentation/mobility/fleet-engine/journeys/trips/create-trip). |\n| 2 | **Assign vehicle.** | You can either assign vehicles to trips directly within your system and report the assignment to Fleet Engine, or you can use the [Search Vehicle](/maps/documentation/mobility/fleet-engine/essentials/vehicles/on-demand-search-vehicle) service to search for vehicles, filtering by both trip and vehicle attributes to find the best vehicle to complete the journey. Any online vehicle within your search radius makes their proximity known through location updates provided by the Driver SDK. Once `SearchVehicle` returns a vehicle that you match to a trip, your system calls the `UpdateTrip` endpoint to report the vehicle ID you assigned to the `NEW` trip. |\n| 3 | **Update trip.** | Once the driver accepts the trip and begins navigating to the pickup location, your system updates the trip status from `NEW` to `ENROUTE_TO_PICKUP`. You continue to poll the vehicle location throughout the journey, either through a direct connection from the app to your backend, or by polling Fleet Engine, which receives an ongoing stream of vehicle location updates from the Driver SDK. Your system then reports each journey milestone to Fleet Engine, which updates the vehicle's waypoint list accordingly. |\n| 4 | **Share journey with consumer.** | Fleet Engine makes trip details and vehicle location available to the Consumer SDK, which uses a listener to receive trip updates and display them in the consumer app. Fleet Engine automatically updates ETA, remaining distance, routes, and remaining vehicle waypoints. See [Share journeys for on-demand trips](/maps/documentation/mobility/journey-sharing/on-demand) for more information. |\n| 5 | **Complete trip.** | Once the vehicle reaches the destination waypoint of the trip and your driver indicates a successful trip, your system sets the `TripStatus` to `COMPLETE` in Fleet Engine. Keep in mind that, like vehicles, trip entities remain active within Fleet Engine for 7 days regardless of status, at which point they are removed. |\n\nTrip sequence flow\n\nThe following diagram shows a more detailed view of this flow.\n\nWhat's next\n\n- [Create a single-destination trip](/maps/documentation/mobility/fleet-engine/journeys/trips/create-trip)"]]