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

पैकेज विवरणv1.1.1

flutter_google_maps_webservices

फ्लटर के लिए गूगल मानचित्र वेब सेवाएं (जियोकोडिंग, स्थान, दिशाएं, दूरी मैट्रिक्स, फोटो, समय क्षेत्र, स्टैटिक मानचित्र)

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
17.4 हज़ार
लाइक
27
Pub अंक
150

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

flutter pub add flutter_google_maps_webservices

पैकेज अवलोकन

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

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

उपयोग

  • पतों को निर्देशांक में ज्यामितीय रूप से परिवर्तित करना
  • पास के स्थान खोजें
  • मार्ग और यात्रा दिशानिर्देश की गणना कर रहे हैं
  • स्थानों के बीच की दूरी और अवधि डाउनलोड करें
  • स्टैटिक मानचित्र छवियाँ प्रदर्शित करना
  • स्थान के आधार पर समय क्षेत्र विवरण प्राप्त करना

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

  • सभी प्रमुख गूगल मानचित्र वेब सेवाओं का समर्थन करता है
  • प्लेटफॉर्म के अनुकूलता
  • सरल, स्पष्ट डार्ट API
  • एम्बेडेड त्रुटि हैंडलिंग
  • असिंक्रोनस रिक्वेस्ट प्रबंधन
  • हल्का और एकीकरण में आसान

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

  • स्थान-जागरूक एप्लिकेशन
  • यात्रा और नेविगेशन ऐप्स
  • अ Immovable property और संपत्ति खोजकर्ता
  • डिलीवरी और लॉजिस्टिक सेवाएं
  • पर्यटन और खोज प्लेटफॉर्म
  • किसी भी ऐप के नक्शा डेटा एकीकरण की आवश्यकता होती है

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

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

मूल README

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

flutter_google_maps_webservices

Build Status codecov Star on Github Buy Me A Coffee

General Information

This is the Dart Library for Google Maps Webservices. You can find the Google Maps Platform Documentation here, but if you're new to this, you may want to start here.

API Key

To use this library you need a Web API key. Follow these steps to acquire the key relevant to your particular Dart application.

These keys are not to be used individually as Android or iOS API keys, but they are instead meant to be used in your Dart application.

Availables API

Usage

Geocoding
import "package:flutter_google_maps_webservices/geocoding.dart";

final geocoding = GoogleMapsGeocoding(apiKey: "<API_KEY>");
final geocoding = GoogleMapsGeocoding(apiKey: "<API_KEY>", httpClient: BrowserClient());
final geocoding = GoogleMapsGeocoding(baseUrl: "http://myProxy.com");

GeocodingResponse response = await geocoding.searchByAddress("1600 Amphitheatre Parkway, Mountain View, CA");
Places
import "package:flutter_google_maps_webservices/places.dart";

final places = GoogleMapsPlaces(apiKey: "<API_KEY>");
final places = GoogleMapsPlaces(apiKey: "<API_KEY>", httpClient: BrowserClient());
final places = GoogleMapsPlaces(baseUrl: "http://myProxy.com");

PlacesSearchResponse response = await places.searchNearbyWithRadius(Location(lat: 31.0424, lng: 42.421), 500);
PlacesSearchResponse response = await places.searchNearbyWithRankby(Location(lat: 31.0424, lng: 42.421), "distance");
PlacesSearchResponse response = await places.searchByText("123 Main Street");

PlacesDetailsResponse response = await places.getDetailsByPlaceId("PLACE_ID");
PlacesDetailsResponse response = await places.getDetailsByReference("REF");
Timezone
import "package:flutter_google_maps_webservices/timezone.dart";

final timezone = GoogleMapsTimezone(apiKey: "<API_KEY>");
final timezone = GoogleMapsTimezone(apiKey: "<API_KEY>", httpClient: BrowserClient());
final timezone = GoogleMapsTimezone(baseUrl: "http://myProxy.com");

TimezoneResponse response = await timezone.getByLocation(Location(lat: 31.0424, lng: 42.421));
TimezoneResponse response = await timezone.getByLocation(Location(lat: 31.0424, lng: 42.421), timestamp: DateTime.utc(2019, 4, 24));
TimezoneResponse response = await timezone.getByLocation(Location(lat: 31.0424, lng: 42.421), timestamp: DateTime.utc(2019, 4, 24), language: 'es');
Static Map

  StaticMap mapStatic = StaticMap(
    apiKey,
    markers: List.from([
      Location(lat: 23.721160, lng: 90.394435),
      Location(lat: 23.732322, lng: 90.385142),]
    ),
    path: Path(
      enc: 'svh~F`j}uOusC`bD',
      color: 'black',
    ),
    scale: 'false'
  )

  String url = mapStatic.getUrl();

  Image.network(url)


Proxy

In case of using a proxy the baseUrl can be set. The apiKey is not required in case the proxy sets it. (Not storing the apiKey in the app is good practice)

Feature Requests and Issues

Please file feature requests and bugs at the issue tracker.

श्रेणियाँ

निर्भरताएँ

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

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

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