Hi Team,

We are using google API from which we were getting latitude and longitude 
of the current location and all things were working fine perfectly.But now 
it is creating an issue while fetching latitude and longitude and sometimes 
giving different location on some android devices.API and function is 
mentioned below:

*Google API* 

http://maps.googleapis.com/maps/api/js?sensor=false

*Function For Getting Lat And Long*

navigator.geolocation.getCurrentPosition(function(p){                       
                                                                            
     
        console.log(p.coords.latitude, p.coords.longitude);                 
                                                                      
        },function(error){
            console.log(error)
        },
        {timeout: 10000,enableHighAccuracy: true}) 

Please help us out so that we can get rid of this issue.

Listed Android Devices In Which We Are Facing Issues: Oppo, Moto G5, etc


Thanks 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6204202c-c03f-452d-a7bd-df27073e5892%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to