flutter_geocoder
Flutter plugin for forward and reverse geocoding
- Stars
- 3
- Forks
- 18
- Last push (UTC)
- Oct 24, 2023
- Project status
- Active
Original README
English project snapshot. Visit GitHub for the latest content.
flutter_geocoder
Forward and reverse geocoding.
Usage
Import package:flutter_geocoder/geocoder.dart, and use the Geocoder.local to access geocoding services provided by the device system.
Example:
import 'package:flutter_geocoder/geocoder.dart';
// From a query
final query = "1600 Amphiteatre Parkway, Mountain View";
var addresses = await Geocoder.local.findAddressesFromQuery(query);
var first = addresses.first;
print("${first.featureName} : ${first.coordinates}");
// From coordinates
final coordinates = new Coordinates(1.10, 45.50);
addresses = await Geocoder.local.findAddressesFromCoordinates(coordinates);
first = addresses.first;
print("${first.featureName} : ${first.addressLine}");
You can alternatively use Geocoder.google member for requesting distant data from google services instead of native ones.
You will find links to the API docs on the pub page.
Getting Started
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.
Dependencies used
Dependency list 2 items
- flutter
{"sdk":"flutter"} - meta
^1.1.6
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- JCKodel/flutter_geocoder · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Directory maintained by Ducafecat ↗