google_geocoding_api 1.4.1 copy "google_geocoding_api: ^1.4.1" to clipboard
google_geocoding_api: ^1.4.1 copied to clipboard

This Package implement Google Geocoding API with default and reverse geosearch

Introduction #

This package implement Google Geocoding API with only dart dependency(without flutter).
Before working with the package, be sure to read Before you begin and create an API key in Google Developer Console.

USAGE #

Geocoding (latitude/longitude lookup) #

This is example code how to use Geocoding Search. Before use it please read Geocoding (latitude/longitude lookup)

import 'package:google_geocoding_api/google_geocoding_api.dart';

Future<void> main() async {
  const String googelApiKey = 'YOUR_API_KEY';
  final bool isDebugMode = true;  
  final api = GoogleGeocodingApi(googelApiKey, isLogged: isDebugMode);  
  final searchResults = await api.search(
    'Boston',
    language: 'en',
  );
}

copied to clipboard

Reverse geocoding (address lookup) #

This is example code how to use Geocoding Reverse Search. Before use it please read Reverse geocoding (address lookup)

import 'package:google_geocoding_api/google_geocoding_api.dart';

Future<void> main() async {
  const String googelApiKey = 'YOUR_API_KEY';
  final bool isDebugMode = true;  
  final api = GoogleGeocodingApi(googelApiKey, isLogged: isDebugMode);  
  final reversedSearchResults = await api.reverse(
    '42.360083,-71.05888',
    language: 'en',
  );
}

copied to clipboard

Place geocoding #

This is example code how to use Place Geocoding. Before use it please read Place Geocoding

import 'package:google_geocoding_api/google_geocoding_api.dart';

Future<void> main() async {
  const String googelApiKey = 'YOUR_API_KEY';
  final bool isDebugMode = true;  
  final api = GoogleGeocodingApi(googelApiKey, isLogged: isDebugMode);  
  final placeSearchResults = await api.placeGeocoding(
    'ChIJd8BlQ2BZwokRAFUEcm_qrcA',
    language: 'en',
  );
}

copied to clipboard

Contact and bugs #

Use Issue Tracker for any questions or bug reports.

38
likes
0
points
5.92k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.06.26 - 2025.01.08

This Package implement Google Geocoding API with default and reverse geosearch

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio

More

Packages that depend on google_geocoding_api