Comments (4)
@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.
@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.
@mvanbeusekom Thank you, that would be awesome. 👍
from flutter-geocoding.
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)
- [Bug]: GeocodingIOS.placemarkFromCoordinates (geocoding_ios.dart:56) - Fatal Exception: PlatformException(IO_ERROR, A network error occurred trying to lookup the supplied coordinates HOT 5
- [Bug]: GeocodingIOS called for Android phones resulting in network errors HOT 2
- Gradle file not updated HOT 2
- Implement for flutter web HOT 1
- Execution failed for task ':geocoding_android:processDebugManifest'. HOT 3
- [Bug]: Unhandled Exception: Could not find any result for the supplied address or coordinates. HOT 5
- [Regression]: Execution failed for task ':geocoding_android:processDebugManifest' HOT 5
- flutter pub failed HOT 4
- [Bug]: Build fails with exception of missing file HOT 5
- [Bug]: Geocodeing 2.1.0 example is for something entirely different - nothing to do with geocoding!
- [Question]: I am trying to Use GeoCoding for Converting Longitude & latitude to It's corresponding Address but getting an error : I/flutter ( 5989): Error: MissingPluginException(No implementation found for method placemarkFromCoordinates on channel flutter.baseflow.com/geocoding) HOT 4
- Please update UUID to 4.1.0, this imcompability blocks entire update of other packages in projects using this, thanks. HOT 2
- [Bug]: Error (Xcode): Framework 'geocoding' not found,Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation) HOT 2
- [Question]: Limit the region on search location HOT 1
- [Question]: Am getting plus code instead of street name HOT 2
- [Bug]: android 34 sdk support? HOT 1
- [Bug]: Dependency versions are old HOT 1
- Android localization only works for country, not other levels HOT 1
- [Feature request]: Expose `Geocoder.isPresent` method on Android HOT 1
- [Bug]: Android backend needs to switch to the async API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-geocoding.