Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Geolocator plugin not working

$
0
0

Hi,

   I need this plugin.  And I'm using or testing this code https://components.xamarin.com/view/geolocatorplugin and it doesn't work.  My xamarin studion is 5.7.2 (Indie).

  string tmpAdress;

var myAddress = "394 Pacific Ave, San Francisco, California";
var approximateLocation = await _geoCoder.GetPositionsForAddressAsync (myAddress);

        foreach (var p in approximateLocation) {
            tmpAdress += p.Latitude + ", " + p.Longitude + "\n";
        } 

Problem:
It will stop on this code and never execute the next statement . (The foreach loop). It just hangs forever..
var approximateLocation = await _geoCoder.GetPositionsForAddressAsync (myAddress);

please help or let me know..


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>