location_service_mix 1.0.11-dev.1 copy "location_service_mix: ^1.0.11-dev.1" to clipboard
location_service_mix: ^1.0.11-dev.1 copied to clipboard

unlistedoutdated

A service helper class that can use multiple location services at the same time.

Flutter location_service_mix Plugin #

Features #

  • Location service helper class that can use multiple location services at the same time.

    • system ✅
    • baidu ✅
    • amap (TODO)
    • hms core (TODO)
  • Auto transform CRS to GCJ02 in mainland China. Or you can set the CRS manually

Getting started #

Add this to your package's pubspec.yaml file:

dependencies:
  location_service_mix: ^1.0.2

Configure #

1. Configure baidu lbs sdk api keys:

Edit android/app/src/Manifest.xml, and add the following code in <Application> Node:

<meta-data
    android:name="com.baidu.lbsapi.API_KEY"
    android:value="YOUR API KEY" />

Usage #

import 'package:location_service_mix/location_service_mix.dart';

LocationServiceMix().getLocation().then((location) {
      print(location);
    });

or

import 'package:location_service_mix/location_service_mix.dart';

LocationData location = await LocationServiceMix().getLocation();
print(location);

1
likes
0
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

A service helper class that can use multiple location services at the same time.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

coordtransform, flutter, flutter_bmflocation, geolocator, permission_handler

More

Packages that depend on location_service_mix