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

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

here_maps_webservice

फ्लटर पैकेज जो विभिन्न उद्देश्यों के लिए यहां मानचित्र वेब सेवाओं API का आवरण प्रदान करता है, खोज से लेकर भौगोलिक संदर्भ तक।

30-दिन डाउनलोड
25
लाइक
18
Pub अंक
35

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

flutter pub add here_maps_webservice

पैकेज अवलोकन

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

एक फ्लटर पैकेज जो हीरे मैप्स वेब सर्विसेज एपीआई को लपेटता है, जिससे डेवलपर्स अपने ऐप में स्थान-आधारित कार्यक्रम जैसे खोज, भौगोलिक कोडिंग और उलटा भौगोलिक कोडिंग को एकीकृत कर सकते हैं। इसके द्वारा यह Here मैप्स के शक्तिशाली मानचित्र और स्थान डेटा सेवाओं तक सुगम पहुँच प्रदान करता है। इस पैकेज का उपयोग उन एप्लिकेशन के लिए आदर्श है जिन्हें सटीक पते के निर्धारण, स्थान की खोज या मानचित्र संबंधी प्रश्नों की आवश्यकता होती है। इसे pub.dev के माध्यम से फ्लटर प्रोजेक्ट में बिना किसी दिक्कत के एकीकृत किया जा सकता है।

उपयोग

  • पतों को निर्देशांक में ज्यामितीय रूप से परिवर्तित करना
  • निर्देशांकों को पते में उलटा भौगोलिक स्थान निर्धारण करें
  • स्थानों और आकर्षण स्थलों की खोज करें
  • मानचित्रों में स्थान डेटा को एकीकृत करना
  • स्वचालित पूर्ण करने के साथ पते चयनकर्ता बनाना

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

  • Here Maps के लिए सरल API वраФ퍰
  • भू-स्थानिक और विपरीत भू-स्थानिक कोडिंग समर्थित है
  • खोज कार्यक्षमता स्थापित करें
  • Flutter के साथ आसान एकीकरण
  • हल्का और मुख्य सेवाओं पर केंद्रित

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

  • सटीक भूस्थिति की आवश्यकता वाले ऐप्स
  • Here Maps APIs का उपयोग करने वाले विकासकर्मी
  • स्थान-जागरूक एप्लिकेशन
  • सुझाव के साथ पता इनपुट
  • स्थान डेटा की आवश्यकता वाली मानचित्र-आधारित सेवाएँ

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

  • Here Maps API प्रमाणपत्र की आवश्यकता होती है
  • वेब सेवाओं तक सीमित (ऑफलाइन समर्थन नहीं)
  • नेटवर्क कनेक्टिविटी पर निर्भर है
  • निर्मित मानचित्र UI रेंडरिंग नहीं है
  • प्लेटफॉर्म-विशिष्ट व्यवहार में भिन्नता हो सकती है

मूल README

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

Here

here_maps_webservice

pub package

About

here_maps_webservice provides Here Maps Web Services API wrapper that serve different purposes from search, to geocoding.

Usage

Add here_maps_webserviceas a dependency in your pubspec.yaml

 dependencies:
  flutter:
    sdk: flutter
  here_maps_webservice: 1.0.2

Run flutter pub get in the terminal and import import 'package:here_maps_webservice/here_maps.dart'

Availabel APIs

Generate API KEY

Go to https://developer.here.com/ and create a new account if you don't have one. Create a new project and select Freemium Plan. Under the REST section of your project, click on Create API key.

Example

Nearby Places
    import 'package:here_maps_webservice/here_maps.dart';
    import 'package:location/location.dart' as l; 
    import 'package:flutter/services.dart';
    
    var currentLocation;
    var location = new l.Location();
    List<dynamic> _nearbyPlaces=[]; 

    try {
      currentLocation = await location.getLocation();
      }on PlatformException catch (error) {
      if (error.code == 'PERMISSION_DENIED') {
        print("Permission Dennied");
      }
    }
    
    HereMaps(apiKey: "your apiKey")
          .exploreNearbyPlaces( lat: currentLocation.latitude, lon: currentLocation.longitude,offset: 10)
          .then((response) {
              setState(() {
                  _nearbyPlaces.addAll(response['results']['items']);
              });
          });

Popular Places
    import 'package:here_maps_webservice/here_maps.dart';
    import 'package:location/location.dart' as l; 
    import 'package:flutter/services.dart';
    
    var currentLocation;
    var location = new l.Location();
    List<dynamic> _explorePopularPlace = []; 

    try {
      currentLocation = await location.getLocation();
      }on PlatformException catch (error) {
      if (error.code == 'PERMISSION_DENIED') {
        print("Permission Dennied");
      }
    }
    
    HereMaps(apiKey: "your apiKey")
          .explorePopularPlaces(
              lat: currentLocation.latitude,
              lon: currentLocation.longitude,
              offset: 10)
          .then((response) {
        setState(() {
          _explorePopularPlace.addAll(response['results']['items']);
        });
      });

Geocoding Autocomplete
     import 'package:here_maps_webservice/here_maps.dart';
     
     List<dynamic> _suggestion = [];
     
     HereMaps(apiKey: "your apiKey")
           .geoCodingAutoComplete(query: "YourQuery")
           .then((response) {
         setState(() {
           _suggestion.addAll(response['suggestions']);
         });
       });
Geocoding
    import 'package:here_maps_webservice/here_maps.dart';
    
    Map<String, dynamic> latLon = Map();
    
    HereMaps(apiKey: "your apiKey")
        .geoCode(searchText: _searchController.text)
        .then((response) {
      setState(() {
        latLon = response['Response']['View'][0]['Result'][0]['Location']
            ['DisplayPosition'];
      });
    });
Reverse Geocoding
    import 'package:here_maps_webservice/here_maps.dart';
    import 'package:location/location.dart' as l; 
    import 'package:flutter/services.dart';
    
    var currentLocation;
    var location = new l.Location();

    try {
      currentLocation = await location.getLocation();
      }on PlatformException catch (error) {
      if (error.code == 'PERMISSION_DENIED') {
        print("Permission Dennied");
      }
    }
    
    Map<String,dynamic> response = HereMaps(apiKey: "your apiKey")
      .reverseGeoCode(lat: currentLocation.latitude, lon: currentLocation.longitude)

TODO

  • Add all the parameters in the existing APIs
  • Add tests
  • Make Model class for exisitng APIs
  • Add routing APIs

Feature Requests and Issues

Please file feature requests and bugs at the issue tracker

Contributing

We would love to see you contribute to here_maps_webservice. Do check out our Contributing Guidelines.

श्रेणियाँ

निर्भरताएँ

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

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

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

अभी कोई डेटा उपलब्ध नहीं है।