graphhooper_route_navigation 0.0.4 copy "graphhooper_route_navigation: ^0.0.4" to clipboard
graphhooper_route_navigation: ^0.0.4 copied to clipboard

A new plugin for graphhooper route navigation. Use Mapbox Map as a base layer & map styles and Graphhooper Map route navigation data for polyline, duration and time.

graphhooper_route_navigation #

A new plugin for map route navigation.

Getting Started #

Introduction #

A new plugin for map route navigation. Use Maplibre Map as a base layer & map styles and Graphhooper Map route navigation data for polyline, duration and time and Getx for state managemet.

Setting up #

Android #

Add these permissions to the AndroidManifest.xml and grant location permission

Add the ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission in the application manifest android/app/src/main/AndroidManifest.xml to enable location features in an Android application:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

IOS This plugin is yet to test on iOS device.

How to use? #

Import package: #

 import 'package:graphhooper_route_navigation/graphhooper_route_navigation.dart';
 import 'package:get/get.dart';
MaterialButton(onPressed: () async{
                    ApiRequest apiRequest = ApiRequest();

    DirectionRouteResponse directionRouteResponse = await apiRequest.getDrivingRouteUsingGraphHooper(usersCurrentLatLng, destinationLatLng, NavigationProfile.car);
    Get.to(MapRouteNavigationScreenPage(directionRouteResponse, mapAccessToken));
              },
                child: Text('Navigate'),
              )

13
likes
0
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

A new plugin for graphhooper route navigation. Use Mapbox Map as a base layer & map styles and Graphhooper Map route navigation data for polyline, duration and time.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

expandable_bottom_sheet, flutter, flutter_plugin_android_lifecycle, flutter_web_plugins, get, http, maplibre_gl, plugin_platform_interface, text_to_speech, vector_math

More

Packages that depend on graphhooper_route_navigation