Code Monkey home page Code Monkey logo

Comments (3)

sebastianbaar avatar sebastianbaar commented on June 26, 2024 1

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.

sebastianbaar avatar sebastianbaar commented on June 26, 2024

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.

fzamperin avatar fzamperin commented on June 26, 2024

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)

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.