// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using Android.Gms.Maps.Model; using MyDriving.DataObjects; using System.Collections.Generic; using System.Linq; namespace MyDriving.Droid.Helpers { public static class LocationExtensions { public static LatLng ToLatLng(this TripPoint point) => new LatLng(point.Latitude, point.Longitude); public static LatLng ToLatLng(this Plugin.Geolocator.Abstractions.Position point) => new LatLng(point.Latitude, point.Longitude); public static List ToLatLngs(this IEnumerable points) => new List(points.Select(s => s.ToLatLng())); } }