GithubHelp home page GithubHelp logo

ahmedsaleh210 / geocoding_resolver Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 26 KB

License: MIT License

Java 4.65% Shell 8.35% Objective-C 5.01% Dart 60.72% C++ 2.70% C 5.03% CMake 12.32% Swift 1.22%

geocoding_resolver's Introduction

GeoCoding Resolver

pub package License: MIT stars

Flutter Package that provides methods for converting between geographic coordinates and addresses.

Features

  • Reverse geocoding: The library provides methods to get the address of a given geographic coordinate.
  • Address suggestions: The library provides methods to get address suggestions for a given address.
  • Support for multiple languages: The methods accept an optional Locale parameter, which can be used to specify the language in which the address information should be retrieved. The default language is English.
  • Support for multiple address formats: The methods accept an optional AddressFormat parameter, which can be used to specify the address format in which the address information should be retrieved.

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  geocoding_resolver: <lastest>

Usage

The GeoCoder class is implemented as a singleton, with a factory constructor that returns the same instance of the class every time it is called.

GeoCoder geoCoder = GeoCoder();

getAddressFromLatLng

  Address address = await geoCoder.getAddressFromLatLng(
    latitude: 37.4219999,
    longitude: 32.0840575,
    lang: Locale.en,
  );

getAddressSuggestions

  List<LookupAddress> addresses =
    await geoCoder.getAddressSuggestions(
  address: '1600 Amphitheatre Parkway, Mountain View, CA');

Responses

Address is a class that represents an address and its details. It has the following attributes:

Attribute Type Description
placeId double represents the unique identifier of the place.
latitude double represents the latitude of the place.
longitude double represents the longitude of the place.
displayName String represents the display name of the place.
boundingBox list of strings represents the bounding box of the place
addressDetails String An instance of the AddressDetails class that holds more detailed information about the address.

AddressDetails is a class that represents the details of an address. It has the following attributes:

Attribute Type Description
houseNumber String represents the house number of the address.
road String represents the road of the address.
neighbourhood String represents the neighborhood of the address.
hamlet String represents the hamlet of the address.
city String represents the city of the address
state String represents the state of the address.
postcode String represents the postal code of the address.
country String represents the country of the address.
countryCode String represents the country code of the address.

Dependencies

http: ^0.13.5

Additional information

the library uses the following APIs:

geocoding_resolver's People

Contributors

ahmedsaleh210 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

geocoding_resolver's Issues

Package Required Updates

Please ensure to update the package to the latest version for all necessary improvements and bug fixes.

Because every version of geocoding_resolver depends on http ^0.13.5 and lottie 3.1.2 depends on http ^1.0.0, geocoding_resolver is incompatible with lottie 3.1.2.
And because no versions of lottie match >3.1.2 <4.0.0, geocoding_resolver is incompatible with lottie ^3.1.2.
So, because alquranalkareem depends on both lottie ^3.1.2 and geocoding_resolver ^0.0.3+2, version solving failed.

Missing part from address

When I want to display address in my custom format, from AddressDetails object, there is no one part of address which is visible in "displayName" property. In this case is street name.
Zrzut ekranu 2023-10-31 123807

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.