पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.10.0

google_directions_api

निर्देश एपीआई एक सेवा है जो स्थानों के बीच दिशानिर्देश गणना करती है। आप कई प्रकार के परिवहन के लिए दिशानिर्देश खोज सकते हैं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
1.3 हज़ार
लाइक
57
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add google_directions_api

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

google_directions_api पैकेज गूगल डायरेक्शंस API के लिए फ्लटर इंटरफ़ेस प्रदान करता है, जिससे विकासकर्ता स्थानों के बीच ड्राइविंग, वॉकिंग, साइक्लिंग और ट्रांजिट जैसे विभिन्न परिवहन मोड के उपयोग से मार्ग की गणना कर सकते हैं। यह एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स सहित कई प्लेटफॉर्म का समर्थन करता है। यह पैकेज गूगल के रूटिंग सेवाओं के साथ एकीकरण को सरल बनाता है, जिससे ऐप्स टर्न-बाई-टर्न निर्देश, यात्रा समय अनुमान और दूरी की गणना को दिखा सकते हैं। यह नेविगेशन, यात्रा योजना और मार्ग डेटा की आवश्यकता वाले स्थान-आधारित एप्लिकेशन के लिए आदर्श है।

उपयोग

  • नेविगेशन ऐप्स
  • यात्रा योजना कार्यक्षमताएं
  • डिलीवरी रूट अनुकूलन
  • स्थान-आधारित सेवा में सुधार
  • वास्तविक समय के परिवहन दिशा खोज

मुख्य विशेषताएँ

  • बहुत ट्रांसपोर्ट मोड का समर्थन करता है
  • क्रॉस-प्लेटफॉर्म संगतता
  • सरल API एकीकरण
  • रूट दूरी और अवधि की गणना
  • चरण-दर-चरण दिशा समर्थन

इनके लिए उपयुक्त

  • नेविगेशन टूल्स बनाने वाले डेवलपर्स
  • मार्ग योजना की आवश्यकता वाले ऐप
  • यात्रा और लॉजिस्टिक्स एप्लिकेशन
  • मोबाइल और वेब स्थान सेवाएं
  • Google Maps रूटिंग फीचर्स को एकीकृत करना

विचार योग्य बातें

  • Google Cloud Platform API कुंजी की आवश्यकता है
  • उपयोग के आधार पर दर सीमाएँ लागू होती हैं
  • उच्च आयतन के साथ अतिरिक्त लागत हो सकती है
  • रियल-टाइम डेटा के लिए इंटरनेट कनेक्शन की आवश्यकता होती है
  • API त्रुटि प्रतिक्रियाओं का सही निपटान आवश्यक है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

google_directions_api

Build Pub GitHub GitHub stars

The Directions API is a service that calculates directions between locations. You can search for directions for several modes of transportation, including transit, driving, walking, or cycling.

Getting Started

The Directions API is a service that calculates directions between locations using an HTTP request.

With the Directions API, you can:

  • Search for directions for several modes of transportation, including transit, driving, walking or cycling.
  • Return multi-part directions using a series of waypoints.
  • Specify origins, destinations, and waypoints as text strings (e.g. "Chicago, IL" or "Darwin, NT, Australia"), or as latitude/longitude coordinates, or as place IDs.

The API returns the most efficient routes when calculating directions. Travel time is the primary factor optimized, but the API may also take into account other factors such as distance, number of turns and many more when deciding which route is the most efficient.

Note: This service is not designed to respond in real time to user input.

For full info about Directions API visit official documentation

Usage
import 'package:google_directions_api/google_directions_api.dart';

void main() {
  DirectionsService.init('API_KEY');

  final directionsService = DirectionsService();

  final request = DirectionsRequest(
    origin: 'New York',
    destination: 'San Francisco',
    travelMode: TravelMode.driving,
  );

  directionsService.route(request,
      (DirectionsResult response, DirectionsStatus status) {
    if (status == DirectionsStatus.ok) {
      // do something with successful response
    } else {
      // do something with error response
    }
  });
}

Feature requests and Bug reports

Feel free to post a feature requests or report a bug here.

TODO

  • Write tests via mocks

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 3 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट