Skip to content

paulcappadona/google_geocoding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google_geocoding

A Flutter plugin that provides a Google Geocoding API.

Preview

The Geocoding API is a service that provides geocoding and reverse geocoding of addresses.

The following requests are available:

  1. Geocoding is the process of converting addresses (like a street address) into geographic coordinates (like latitude and longitude), which you can use to place markers on a map, or position the map.
  2. Geocoding by PlaceId is the process of retrieving the address for a place ID. The place ID is a unique identifier that can be used with other Google APIs.
  3. Reverse geocoding is the process of converting geographic coordinates into a human-readable address.

You can also use the Geocoding API to find the address for a given place ID.

Usage

To use this plugin, add google_geocoding as a dependency in your pubspec.yaml file.

Getting Started

Example

Sample Usage

  • Geocoding
var googleGeocoding = GoogleGeocoding("Your-Key");
var result = await googleGeocoding.geocoding.get("1600 Amphitheatre",null);
  • Geocoding by Place ID
var googleGeocoding = GoogleGeocoding("Your-Key");
var result = await googleGeocoding.geocoding.getByPlaceId("ChIJ3S-JXmauEmsRUcIaWtf4MzE");
  • Reverse geocoding
var googleGeocoding = GoogleGeocoding("Your-Key");
var result = await googleGeocoding.geocoding.getReverse(LatLon(40.714224,-73.961452));

About

A new Flutter package for handle google geocoding api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 98.7%
  • Other 1.3%