geocoder2 1.1.2 copy "geocoder2: ^1.1.2" to clipboard
geocoder2: ^1.1.2 copied to clipboard

Forward and reverse geocoding is Easy Now.

geocoder2 #

Forward and reverse geocodeing is easy now

Features #

  • Easy To Use
  • No Errors

Code Example #

import 'package:geocoder2/geocoder2.dart';

Get Data Form Coordinates #

    GeoData data = await Geocoder2.getDataFromCoordinates(
        latitude: 40.714224,
        longitude: -73.961452,
        googleMapApiKey: "GOOGLE_MAP_API_KEY");
    
    //Formated Address
    print(data.address);
    //City Name
    print(data.city);
    //Country Name
    print(data.country);
    //Country Code
    print(data.countryCode);
    //Latitude
    print(data.latitude);
    //Longitude
    print(data.longitude);
    //Postal Code
    print(data.postalCode);
    //State
    print(data.state);
    //Street Number
    print(data.street_number);

Get Data From Address #

    GeoData data = await Geocoder2.getDataFromAddress(
        address: "277 Bedford Ave, Brooklyn, NY 11211, USA",
        googleMapApiKey: "GOOGLE_MAP_API_KEY");
    
    //Formated Address
    print(data.address);
    //City Name
    print(data.city);
    //Country Name
    print(data.country);
    //Country Code
    print(data.countryCode);
    //Latitude
    print(data.latitude);
    //Longitude
    print(data.longitude);
    //Postal Code
    print(data.postalCode);
    //State
    print(data.state);
    //Street Number
    print(data.street_number);

Buy Me A Coffee #

Buy Me A Coffee Using PhonePe #

50
likes
0
pub points
95%
popularity

Publisher

verified publisherflutterbuddy.in

Forward and reverse geocoding is Easy Now.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on geocoder2