Coder Social home page Coder Social logo

Comments (5)

sebastianbaar avatar sebastianbaar commented on May 25, 2024 1

Ok, first please uninstall/reinstall the plugin and try again:
ionic cordova plugin remove cordova-plugin-nativegeocoder
ionic cordova plugin add cordova-plugin-nativegeocoder

If you still got an error please give more infos about your setting: is it on iOS AND Android?, on which device are you testing? (notice that the plugin won't work on Android emulator)

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 25, 2024

Hey @binDebug,
which version of cordova-plugin-nativegeocoder are you using? I have tested with the latest version v3.1.1 and it works both on Android and iOS (for "Times Square 42 Street Station, New York, NY, USA" I get lat: 40.755... lon: -73.987...).

Please update the plugin to the latest version and try again. If you still have this error please give more info about the OS, OS version, device, plugin version.

Cheers

from cordova-plugin-nativegeocoder.

binDebug avatar binDebug commented on May 25, 2024

Thank you Sebastian, firstly for this library, and second for the response.

The version seems to be just the one you mention. Please find below a snip of my package.json
image

from cordova-plugin-nativegeocoder.

binDebug avatar binDebug commented on May 25, 2024

Ah! therein lies the catch, you mention emulator and that is where I am testing. Thanks for that. I shall test on another device and let you know.

Just curious, why wouldn't it work on an emulator? Also, why would it work with specific addresses while not working with others?

Cheers!

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 25, 2024

I'm not quite sure why it does not work. It's somehow related to Google Play Services not working on an emulator but that's required for Geocoder to work. According to the docs:

The Geocoder class requires a backend service that is not included in the core android framework. The Geocoder query methods will return an empty list if there no backend service in the platform.

Please test on a real device and give some feedback so I know if I can close this issue.

Cheers!

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.