How do i call mapview:getUserLocation while not rendering it?

Hi Staff & Community!

As the question goes, i need to get user location(latitude,longitude, street,details,etc) without showing user the mapview. I just need the functionality. How do i do this? I tried rendering the mapview outside of screen and tried making it invisible by .isVisible =false. Both will cause the functionality to stop working. Latitude & Longitude will always be 0. 

Is there anyway to do this? Please advise, thanks!

Regards,

Vincent

I would suggest using the GPS without the mapview to get the persons Lat/Long and then use network.request() and call Google GeoEncoding API’s directly.

Rob

I would suggest using the GPS without the mapview to get the persons Lat/Long and then use network.request() and call Google GeoEncoding API’s directly.

Rob