Git Product home page Git Product logo

Comments (4)

mvanbeusekom avatar mvanbeusekom commented on September 13, 2024 2

@Rahuvich we have just release version 1.0.4 of the geocoding plug-in.

After some internal discussions we decided not to return null but a custom exception explaining clearly the address was not found. So in your case you can use the code like this:

List<Location> locations = null;

try {
    locations = await locationFromAddress("81 Allée Joseph Pascal 31500 Pau");
} on NoResultFoundException {
    // Handle "No results found for the address"
    ...
}

Will be closing this issue now, but please leave a message if you have any questions.

from flutter-geocoding.

mvanbeusekom avatar mvanbeusekom commented on September 13, 2024 1

@Rahuvich thank you for submitting this issue. I have looked into it and found that in this case Apple cannot find a result for the given address (according to Apple's definition "kCLErrorDomain Code=8" means "kCLErrorGeocodeFoundNoResult".

Of course this should not be something that causes a crash on the geocoding plugin and I will be working on that to make sure the geocoding plug-in will return a null (as is also the case on Android, if the Android implementation cannot do the translation).

from flutter-geocoding.

raulmabe avatar raulmabe commented on September 13, 2024

@mvanbeusekom Thank you, that would be awesome. 👍

from flutter-geocoding.

Bobby9292 avatar Bobby9292 commented on September 13, 2024

Just experienced that on Android like @mvanbeusekom mentioned.
I moved my code to a try-catch block and create a dummy Placemark in the the catch block with "unknown address" to handle this.

from flutter-geocoding.

Related Issues (20)

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.