osm_geocoder 1.0.0+1 copy "osm_geocoder: ^1.0.0+1" to clipboard
osm_geocoder: ^1.0.0+1 copied to clipboard

Obtain detailed location data without needing an API key. This package is a client for the Open Street Map.

πŸ—ΊοΈ OSM Geocoder! #

No API Key Required! Obtain detailed location data without needing an API key. This package is a client for the Open Street Map.

Contributors Issues Pull Requests GitHub Repo stars


πŸ”Ž Getting Location Data from Coordinates #

Fetching location data using coordinates with the OSM Geocoder is straightforward:

Coordinates coordinates = Coordinates(-5.837799,-35.203978);
LocationData data = await OSMGeocoder.findDetails(coordinates);

LocationData Class

The LocationData class contains the following fields:

  int placeId;
  String osmType;
  int id;
  String lat;
  String lon;
  int placeRank;
  double importance;
  String displayName;
  Address address;
  List<String> boundingbox;

Address Class

The Address class provides detailed address information:

  String road;
  String suburb;
  String city;
  String stateDistrict;
  String state;
  String iso31662Lvl4;
  String postcode;
  String country;
  String countryCode;

For more detailed information, please refer to the documentation.


πŸ“ About the OpenStreetMap #

OpenStreetMap is a collaborative project that creates and distributes free geographic data without legal or technical restrictions for use.

This project is 20 years old and is currently in its 6th version of the API, with subprojects in various countries, including Brazil!


2
likes
140
pub points
65%
popularity

Publisher

unverified uploader

Obtain detailed location data without needing an API key. This package is a client for the Open Street Map.

Repository (GitHub)
View/report issues
Contributing

Topics

#geocoder #map #openstreetmap

Documentation

API reference

License

MIT (license)

Dependencies

dartdoc, flutter, http

More

Packages that depend on osm_geocoder