amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 346 forks source link

Position to Address and Address to Position #631

Closed NickeManarin closed 5 years ago

NickeManarin commented 5 years ago

With this project, is there any way to find the full address of a given position, for example if I drop a pin on the map?

Also, is there any way to get a position on the map based on a given address? Like what it happens with the website?

NickeManarin commented 5 years ago

Okay, I found it!

I just need to use the Geocoder:

var a = new Geocoder();
MainSearchBar.Text = (await a.GetAddressesForPositionAsync(e.Point)).FirstOrDefault();