vietmap_flutter_plugin 0.0.1
vietmap_flutter_plugin: ^0.0.1 copied to clipboard
A flutter plugin for VietMap APIs. This plugin is a wrapper around VietMap APIs for Android and iOS.
A Dart package for using the VietMap APIs in Dart.
Vietmap API Flutter plugin #
Contact vietmap.vn to register a valid key.
Getting started #
Add library to pubspec.yaml file
vietmap_flutter_plugin: latest_version
Check the latest version at https://pub.dev/packages/vietmap_flutter_plugin
or run this command in the terminal to add the library to the project:
flutter pub add vietmap_flutter_plugin
Usage #
Init plugin #
- You must call
Vietmap.getInstance(apiKey)
before using any other methods.
Vietmap.getInstance('YOUR_API_KEY_HERE');
- We provide below methods to use Vietmap APIs:
Vietmap.autocomplete(VietMapAutoCompleteParams(textSearch: 'Hà Nội'));
Vietmap.geoCode(VietMapAutoCompleteParams(textSearch: 'Hà Nội'));
Vietmap.reverse(LatLng(21.027763, 105.834160));
Vietmap.place('Place ID');
Vietmap.routing(VietMapRoutingParams(points: [
LatLng(21.027763, 105.834160),
LatLng(21.027763, 105.834160)
]));
/// This function is used to get the style url of Vietmap,
/// which provide the style of the map for VietmapGL plugin.
Vietmap.getVietmapStyleUrl();
Additional information #
This package is a part of Vietmap API project.