Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newtadev/location_geocoder
Flutter package to convert latitude/longitude to address and from address to latitude/longitude
https://github.com/newtadev/location_geocoder
flutter geocoding location location-geocoder
Last synced: 2 months ago
JSON representation
Flutter package to convert latitude/longitude to address and from address to latitude/longitude
- Host: GitHub
- URL: https://github.com/newtadev/location_geocoder
- Owner: newtaDev
- License: mit
- Created: 2022-01-18T15:36:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T05:06:04.000Z (over 1 year ago)
- Last Synced: 2024-10-12T04:06:18.447Z (3 months ago)
- Topics: flutter, geocoding, location, location-geocoder
- Language: Dart
- Homepage: https://pub.dev/packages/location_geocoder
- Size: 183 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# location_geocoder
Flutter package to convert latitude/longitude to address and from address to latitude/longitude.
provides easy geocoding and reverse-geocoding features. ( geocoder )
uses goolgle's location api## Getting Started
To Get Address from Coordinates
```dart
const _apiKey = 'YOUR_MAP_API_KEY';
final LocationGeocoder geocoder = LocationGeocoder(_apiKey);
final address = await geocoder
.findAddressesFromCoordinates(Coordinates(9.9312, 76.2673));
print(address.first.addressLine);
```To Get Coordinates from Address
```dart
const _apiKey = 'YOUR_MAP_API_KEY';
final LocationGeocoder geocoder = LocationGeocoder(_apiKey);
final address = await geocoder.findAddressesFromQuery('kochi,kerala');;
print(address.first.coordinates);
```