graphhooper_route_navigation

Last updated:

0 purchases

graphhooper_route_navigation Image
graphhooper_route_navigation Images
Add to Cart

Description:

graphhooper route navigation

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" />
copied to clipboard
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';
copied to clipboard
MaterialButton(onPressed: () async{
ApiRequest apiRequest = ApiRequest();

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.