galli_navigation

Last updated:

0 purchases

galli_navigation Image
galli_navigation Images
Add to Cart

Description:

galli navigation

galli_navigation #
galli_navigation is a Flutter plugin that extends the Galli Vector Plugin by adding navigation capabilities. This plugin allows you to navigate using vector maps from Gallimaps, providing features such as route calculation and turn-by-turn navigation.
Features #

Turn-by-turn navigation
Route calculation with various methods (walking/driving/cycling)
Real-time navigation updates

Installation #
Add galli_navigation to your pubspec.yaml file:
dependencies:
galli_navigation: latest
copied to clipboard
Then, run flutter pub get to install the new dependency.
Usage #
Import the plugin in your Dart code:
import 'package:galli_navigation/galli_navigation.dart';
copied to clipboard
Basic Example #
Here is a simple example of how to use the galli_navigation plugin:
///initialise gallimethods with token
GalliMethods methods =
GalliMethods("authToken");
copied to clipboard
NavigateWithLatLng #
LatLng source = LatLng(latitude,longitude);
LatLng destination = LatLng(latitude,longitude);
///navigate with latlng
methods.navigateWithLatLng(
context: context,
source: source,
destination: destination,
method: RoutingMethods.driving);
copied to clipboard
Navigate with navigation data #
var navJson = await methods.getNavigationData(
source: source,
destination: destination,
method: RoutingMethods.walking);
//navJson will have multiple route options, parse one as NavigationModel then pass to navigate method
NavigationModel navData =
NavigationModel.fromJson(navJson["routes"].first);
methods.navigate(
context: context,
navData: navData,
method: RoutingMethods.driving);
copied to clipboard
Documentation #
For detailed documentation and advanced usage, please visit the official documentation.

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.