-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Geocoding to Google Maps plugin #280
Comments
No I missed that functionality. Will be added later. |
@ihadeed |
See #292 Added it, just haven't tested it yet. Not sure how that class works. |
@ihadeed |
Hello, Thanks in advance. |
|
Thank You for your quick answer. I copied and paste your example but didnt work. In getCurrentPosition() im getting empty error {} (then not enter to Geocoder section) And isolate geocode() returns emty array [] this.platform.ready().then(() => { Tensting on Device (Android 6.0.1) |
I have the app in Play Market with this code and all works. Are you install cordova google maps plugin with api key? |
Yes, i've tried with:
Even with:
Before, every time I run:
|
Goelocation is already part of ionic-native module. You can see the docs
for examples too. A Cordova plugin itself will not be necessary I believe.
On Wednesday, January 11, 2017, mgarciadash ***@***.***> wrote:
Yes, i've tried with:
cordova plugin add cordova-plugin-googlemaps --variable
API_KEY_FOR_ANDROID="MY_API_KEY" --variable API_KEY_FOR_IOS="MY_API_KEY"
ionic plugin add cordova-plugin-googlemaps --variable
API_KEY_FOR_ANDROID="MY_API_KEY" --variable API_KEY_FOR_IOS="MY_API_KEY"
Even with:
ionic plugin add
https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps
--variable API_KEY_FOR_ANDROID="MY_API_KEY" --variable
API_KEY_FOR_IOS="MY_API_KEY"
cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps
--variable API_KEY_FOR_ANDROID="MY_API_KEY" --variable
API_KEY_FOR_IOS="MY_API_KEY"
Before, every time I run:
cordova plugin rm cordova-plugin-googlemaps
cordova plugin rm com.googlemaps.ios
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.<
|
Ok, began from zero... I removed the plugin i had with:
Then tried and nothing. Also i checked Enabled APIs in console.developers.google and enable:
And i added the plugin again using:
And everything works now ! |
Also notice that not works on emulator nor device -livereload :O |
@mgarciadash, I did the same steps as mentioned above and I still get an empty array for res : this.platform.ready().then(() => { I am running this code on iOS emulator and ionic view. How did you test out the output? |
Just as an FYI for people looking at this issue. When running on an emulator, it will not work. You need to run this on your mobile device. The Geocoder grpc fails in android studio emulator. bug has been identified. |
Is there any methods for cordova-plugin-googlemaps for performing Geocoding as shown here "https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Geocoder"
The text was updated successfully, but these errors were encountered: