Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.