Comments (3)
Hey @fzamperin,
yes it's a bug. Thank you for the stack trace. I will fix this. Meanwhile you can fix the error on your side by adding options
to the forwardGeocode function:
const OPTIONS: NativeGeocoderOptions = {
useLocale: true,
maxResults: 1
};
this.nativeGeocoder.forwardGeocode('991 Rua Maestro ...', OPTIONS) <-- HERE
options
cannot be null. That's a bug I am going to fix.
from cordova-plugin-nativegeocoder.
Hi @fzamperin,
I do not own a Xiaomi Pocophone F1 but I tested on Android 10 and cannot reproduce your error. Could you please give me some more infos?! Do you have a call stack for this error? Which method are you calling to reproduce your error (e.g.: both for forward and reverse geocoding)?
I would really like to help you, but I need more infos!
Cheers
from cordova-plugin-nativegeocoder.
I`ve installed the plugin again with the new version in order to test it, this bug happens with the forwardGeocode function, this is the stack trace from Logcat:
2020-03-27 09:24:15.075 26914-27292/br.com.eatsforyou E/PluginManager: Uncaught exception from plugin
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.toString()' on a null object reference
at cordova.plugin.nativegeocoder.NativeGeocoder.forwardGeocode(NativeGeocoder.java:118)
at cordova.plugin.nativegeocoder.NativeGeocoder.execute(NativeGeocoder.java:53)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:336)
at android.os.Looper.loop(Looper.java:181)
at android.os.HandlerThread.run(HandlerThread.java:67)
I'm using ionic-native in order to call the plugin: v4.15.0, the string I'm passing to the plugin is: 991 Rua Maestro Elias Lobo Jardim Paulista São Paulo São Paulo 01433-000
, even though any string does not work for me, if there's something more I can do, let me know.
from cordova-plugin-nativegeocoder.
Related Issues (20)
- native-geocoder not found HOT 2
- reverseGeocode Error: grpc failed HOT 1
- Return Address Line or formatted address HOT 2
- hit limit HOT 1
- reverseGeocode JSON error HOT 1
- Not allowed to start service Intent HOT 1
- Needs support for Swift 4 HOT 1
- Ionic 3 Native Geocoder return undefined HOT 2
- huge ios app size increase after install this plugin HOT 1
- reverseGeocode not working in real device HOT 2
- Sometimes only a partial postcode is returned (iOS) HOT 1
- example js
- Geocoding Pligin Not Fully Functional HOT 1
- Type 'NativeGeocoderOriginal' is not assignable to type 'Provider'.ts HOT 1
- Native geocoder result looks different for andriod and ios when do reverse geocode HOT 3
- reverseGeocode return "ebhg: UNAVAILABLE: Unable to resolve host geomobileservices-pa.googleapis.com" HOT 1
- Removed dependency plugin for Swift Support brokes the build
- IOS build failing with NSObject can be declared @objc error HOT 2
- Web app feature
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 cordova-plugin-nativegeocoder.