Enum Mode
মোড দিকনির্দেশ খোঁজার সময় ব্যবহার করার জন্য ভ্রমণের মোড প্রতিনিধিত্ব করে একটি enum।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, Maps.Mode.DRIVING
।
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
DRIVING | Enum | রাস্তার মাধ্যমে ড্রাইভিং দিকনির্দেশ। |
WALKING | Enum | পথচারী পথ এবং ফুটপাথের মাধ্যমে হাঁটার দিকনির্দেশ (যেখানে উপলব্ধ)। |
BICYCLING | Enum | সাইকেল পাথ এবং পছন্দের রাস্তার মাধ্যমে সাইকেল চালানোর দিকনির্দেশ (যেখানে উপলব্ধ)। |
TRANSIT | Enum | পাবলিক ট্রানজিট রুটের মাধ্যমে ট্রানজিট দিকনির্দেশ (যেখানে উপলব্ধ)। এই মোডের জন্য আপনাকে প্রস্থান বা আগমনের সময় সেট করতে হবে। // Log all available data for a public-transit trip.
var directions = Maps.newDirectionFinder()
.setOrigin('The Cloisters, New York, NY')
.setDestination('JFK airport, New York, NY')
.setMode(Maps.DirectionFinder.Mode.TRANSIT)
.setDepart(new Date())
.getDirections();
var route = directions.routes[0];
Logger.log(route); |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-09 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-09 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["`Maps.Mode` is an enum used to specify the mode of transportation for directions."],["The available modes are `DRIVING`, `WALKING`, `BICYCLING`, and `TRANSIT`."],["`TRANSIT` mode requires specifying either departure or arrival time."],["Each mode utilizes specific routes like roads, pedestrian paths, bicycle paths, or public transit routes as appropriate."]]],["The `Mode` enum defines travel methods for finding directions. It includes `DRIVING`, `WALKING`, and `BICYCLING`, for road, pedestrian, and cycling routes respectively. `TRANSIT` offers public transit routes, requiring departure or arrival time specification. To use, reference as `Maps.Mode.PROPERTY`. An example is provided for setting a public transit route, by using `.setMode(Maps.DirectionFinder.Mode.TRANSIT)` and calling the `getDirections()` function.\n"]]