Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created November 25, 2019 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/6168cf5a0392c9abdb66269eaf429c22 to your computer and use it in GitHub Desktop.
Save icebeam7/6168cf5a0392c9abdb66269eaf429c22 to your computer and use it in GitHub Desktop.
DemoDS: LocationService.cs
using System.Threading.Tasks;
using DemoDS.Models;
using DemoDS.Interfaces;
using Xamarin.Forms;
namespace DemoDS.Services
{
public static class LocationService
{
public static async Task<LocationAddress> GetAddress(double latitude, double longitude)
{
var service = DependencyService.Get<IReverseGeocode>();
var location = await service.GetLocationAddress(latitude, longitude);
return location;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment