Created
November 25, 2019 12:23
-
-
Save icebeam7/6168cf5a0392c9abdb66269eaf429c22 to your computer and use it in GitHub Desktop.
DemoDS: LocationService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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