You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/13 10:51:09 UTC

[GitHub] ViCoastLLC opened a new issue #135: Geocoder.geocode returns 'Request denied' status

ViCoastLLC opened a new issue #135: Geocoder.geocode returns 'Request denied' status
URL: https://github.com/apache/cordova-plugin-geolocation/issues/135
 
 
   navigator.geolocation.getCurrentPosition  returns success but, geocoder.geocode returns status -'Request denied' 
   
   Code:
   navigator.geolocation.getCurrentPosition(onSuccess, onError);
                               function onSuccess(position) {
                                   var geocoder;
                                   geocoder = new google.maps.Geocoder();
                                   var latlng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
                                   geocoder.geocode(
                                       { 'latLng': latlng },
                                       function (results, status) {
                                           if (status == google.maps.GeocoderStatus.OK) {
   //mycode
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org