google_map_service 0.0.1
google_map_service: ^0.0.1 copied to clipboard
A Flutter package that provides a complete service layer for Google Maps, including APIs for map initialization, markers, geocoding, directions, places, and distance calculations — all in a clean, eas [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add google_map_serviceWith Flutter:
$ flutter pub add google_map_serviceThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
google_map_service: ^0.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:google_map_service/core/errors/exception_handling.dart';
import 'package:google_map_service/core/extensions/location_ext.dart';
import 'package:google_map_service/core/network/api_client.dart';
import 'package:google_map_service/core/network/api_constants.dart';
import 'package:google_map_service/core/network/api_exception.dart';
import 'package:google_map_service/core/network/https_status_code.dart';
import 'package:google_map_service/data/models/google_map/marker_type.dart';
import 'package:google_map_service/data/models/google_map/place_detail_by_geocode_response.dart';
import 'package:google_map_service/data/models/google_map/place_detail_response.dart';
import 'package:google_map_service/data/models/google_map/places_response.dart';
import 'package:google_map_service/data/models/google_map/routes_response.dart';
import 'package:google_map_service/data/repositories/google_map_service.dart';