geocode 1.0.0-nullsafety.0 geocode: ^1.0.0-nullsafety.0 copied to clipboard
Package to make Geocode requests. It exposes two methods to translate coordinates into locations and addresses into coordinates.
import 'package:geocode/geocode.dart';
void main() async {
GeoCode geoCode = GeoCode();
try {
Coordinates coordinates = await geoCode.forwardGeocoding(
address: "532 S Olive St, Los Angeles, CA 90013");
print("Latitude: ${coordinates.latitude}");
print("Longitude: ${coordinates.longitude}");
} catch (e) {
print(e);
}
}