google_geocoding_api 1.0.1 google_geocoding_api: ^1.0.1 copied to clipboard
This Package implement Google Geocoding API
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',
);
print(searchResults);
final reversedSearchResults = await api.reverse(
'42.360083,-71.05888',
language: 'en',
);
print(reversedSearchResults);
}