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

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

google_maps_webservice

Google Maps Web Services [API](https://developers.google.com/maps/web-services)

30-दिन डाउनलोड
9.7 हज़ार
लाइक
163
Pub अंक
30

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

flutter pub add google_maps_webservice

पैकेज अवलोकन

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

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

उपयोग

  • पतों को निर्देशांक में ज्यामितीय रूप से परिवर्तित करना
  • पास के स्थानों और विवरण को प्राप्त करें
  • मार्ग और यात्रा की दूरी की गणना कर रहे हैं
  • स्थान-आधारित विशेषताओं में मानचित्र डेटा को एकीकृत करना
  • सर्वरलेस फंक्शन में मानचित्र डेटा को प्रोसेस करना

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

  • Google Maps APIs के लिए सरल HTTP क्लाइंट
  • कई Google Maps Web सेवाओं का समर्थन करता है
  • साफ, प्रकार सुरक्षित अनुरोध और प्रतिक्रिया मॉडल
  • Flutter ऐप्स के साथ आसान एकीकरण
  • अच्छी तरह से दस्तावेज़ीकृत और सक्रिय रूप से बनाए रखा गया

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

  • स्थान-जागरूक Flutter ऐप बनाने वाले डेवलपर्स
  • Google Maps Web Services से मानचित्र डेटा की आवश्यकता वाले ऐप्स
  • जियोकोडिंग या मार्ग गणना की आवश्यकता वाले प्रोजेक्ट
  • Flutter ऐप्स में बैकएंड लॉजिक
  • Google Maps APIs का व्यापक रूप से उपयोग करने वाली टीमें

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

  • एक वैध Google Cloud API कुंजी की आवश्यकता होती है
  • मानचित्र UI रेंडरिंग शामिल नहीं है (google_maps_flutter के साथ उपयोग करें)
  • वेब सेवा एंडपॉइंट्स तक सीमित, रियल-टाइम मानचित्र नहीं
  • Google Cloud बिलिंग के आधार पर दर सीमाएँ लागू होती हैं
  • ऑफलाइन मानचित्र कार्यक्षमता के लिए उपयुक्त नहीं

मूल README

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

Build Status codecov Star on Github Buy Me A Coffee

google_maps_webservice

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:google_maps_webservice/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:google_maps_webservice/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:google_maps_webservice/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.

श्रेणियाँ

निर्भरताएँ

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

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

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