7 instantiations of Location
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
69
public Map() : this(new MapSpan(new Devices.Sensors.
Location
(20.793062527, -156.336394697), 0.5, 0.5))
Microsoft.Maui.Essentials (4)
Types\LocationExtensions.ios.tvos.watchos.macos.cs (2)
15
new
Location
29
new
Location
Types\Placemark.shared.cs (2)
28
Location = new
Location
();
30
Location = new
Location
(placemark.Location);
Microsoft.Maui.Maps (2)
Primitives\GeographyUtils.cs (1)
32
positions.Add(new
Location
(latitude.ToDegrees(), longitude.ToDegrees()));
Primitives\MapSpan.cs (1)
40
return new MapSpan(new
Location
(lat, Center.Longitude), Math.Min(LatitudeDegrees, maxDLat), LongitudeDegrees);
129 references to Location
Microsoft.Maui.Controls.Maps (37)
Circle.cs (4)
15
typeof(
Location
),
17
default(
Location
));
36
public
Location
Center
38
get => (
Location
)GetValue(CenterProperty);
HandlerImpl\Map.Impl.cs (1)
14
void IMap.Clicked(
Location
location) => MapClicked?.Invoke(this, new MapClickedEventArgs(location));
HandlerImpl\Polygon.Impl.cs (11)
21
public
Location
this[int index]
46
public void Add(
Location
item)
69
public bool Contains(
Location
item)
79
public void CopyTo(
Location
[] array, int arrayIndex)
87
/// <returns>A <see cref="IEnumerator{T}"/> of type <see cref="
Location
"/> with all the locations in this polygon.</returns>
88
public IEnumerator<
Location
> GetEnumerator()
98
public int IndexOf(
Location
item)
108
public void Insert(int index,
Location
item)
119
public bool Remove(
Location
item)
133
var
item = Geopath[index];
143
void NotifyHandler(string action, int index,
Location
item)
HandlerImpl\Polyline.Impl.cs (11)
19
public
Location
this[int index]
44
public void Add(
Location
item)
67
public bool Contains(
Location
item)
77
public void CopyTo(
Location
[] array, int arrayIndex)
85
/// <returns>A <see cref="IEnumerator{T}"/> of type <see cref="
Location
"/> with all the locations in this polyline.</returns>
86
public IEnumerator<
Location
> GetEnumerator()
96
public int IndexOf(
Location
item)
106
public void Insert(int index,
Location
item)
118
public bool Remove(
Location
item)
132
var
item = Geopath[index];
142
void NotifyHandler(string action, int index,
Location
item)
MapClickedEventArgs.cs (2)
13
public
Location
Location { get; }
19
public MapClickedEventArgs(
Location
location)
Pin.cs (4)
17
public static readonly BindableProperty LocationProperty = BindableProperty.Create(nameof(Location), typeof(
Location
), typeof(Pin), default(
Location
));
41
public
Location
Location
43
get { return (
Location
)GetValue(LocationProperty); }
Polygon.cs (2)
32
public IList<
Location
> Geopath { get; }
39
var observable = new ObservableCollection<
Location
>();
Polyline.cs (2)
15
public IList<
Location
> Geopath { get; }
22
var observable = new ObservableCollection<
Location
>();
Microsoft.Maui.Essentials (78)
Geocoding\Geocoding.ios.tvos.watchos.macos.cs (2)
21
public async Task<IEnumerable<
Location
>> GetLocationsAsync(string address)
27
return positionList?.ToLocations() ?? Array.Empty<
Location
>();
Geocoding\Geocoding.shared.cs (10)
25
/// <returns>List of <see cref="
Location
"/> that best match the address or <see langword="null"/> if no locations are found.</returns>
26
Task<IEnumerable<
Location
>> GetLocationsAsync(string address);
49
/// Retrieve potential placemarks for a given location specified by <see cref="
Location
"/>.
51
/// <param name="location">A <see cref="
Location
"/> instance to find placemarks near.</param>
53
public static Task<IEnumerable<Placemark>> GetPlacemarksAsync(
Location
location) =>
69
/// <returns>List of <see cref="
Location
"/> that best match the address or <see langword="null"/> if no locations are found.</returns>
70
public static Task<IEnumerable<
Location
>> GetLocationsAsync(string address) =>
93
/// Retrieve potential placemarks for a given location specified by <see cref="
Location
"/>.
96
/// <param name="location">A <see cref="
Location
"/> instance to find placemarks near.</param>
99
public static Task<IEnumerable<Placemark>> GetPlacemarksAsync(this IGeocoding geocoding,
Location
location)
Geolocation\Geolocation.ios.macos.cs (2)
21
public async Task<
Location
?> GetLastKnownLocationAsync()
41
public async Task<
Location
?> GetLocationAsync(GeolocationRequest request, CancellationToken cancellationToken)
Geolocation\Geolocation.shared.cs (17)
17
/// <returns>A <see cref="
Location
"/> object containing recent location information or <see langword="null"/> if no location is known.</returns>
22
Task<
Location
?> GetLastKnownLocationAsync();
30
/// <returns>A <see cref="
Location
"/> object containing current location information or <see langword="null"/> if no location could be determined.</returns>
31
Task<
Location
?> GetLocationAsync(GeolocationRequest request, CancellationToken cancelToken);
77
/// <returns>A <see cref="
Location
"/> object containing recent location information or <see langword="null"/> if no location is known.</returns>
82
public static Task<
Location
?> GetLastKnownLocationAsync() =>
88
/// <returns>A <see cref="
Location
"/> object containing current location information or <see langword="null"/> if no location could be determined.</returns>
90
public static Task<
Location
?> GetLocationAsync() =>
97
/// <returns>A <see cref="
Location
"/> object containing current location information or <see langword="null"/> if no location could be determined.</returns>
99
public static Task<
Location
?> GetLocationAsync(GeolocationRequest request) =>
107
/// <returns>A <see cref="
Location
"/> object containing current location information or <see langword="null"/> if no location could be determined.</returns>
109
public static Task<
Location
?> GetLocationAsync(GeolocationRequest request, CancellationToken cancelToken) =>
179
internal void OnLocationChanged(
Location
location) =>
198
/// <returns>A <see cref="
Location
"/> object containing current location information or <see langword="null"/> if no location could be determined.</returns>
200
public static Task<
Location
?> GetLocationAsync(this IGeolocation geolocation) =>
208
/// <returns>A <see cref="
Location
"/> object containing current location information or <see langword="null"/> if no location could be determined.</returns>
210
public static Task<
Location
?> GetLocationAsync(this IGeolocation geolocation, GeolocationRequest request) =>
Geolocation\GeolocationLocationChangedEventArgs.shared.cs (2)
14
public
Location
Location { get; }
21
public GeolocationLocationChangedEventArgs(
Location
location)
Map\Map.shared.cs (8)
60
public static Task OpenAsync(
Location
location) =>
69
public static Task OpenAsync(
Location
location, MapLaunchOptions options) =>
114
public static Task<bool> TryOpenAsync(
Location
location) =>
124
public static Task<bool> TryOpenAsync(
Location
location, MapLaunchOptions options) =>
192
public static Task OpenAsync(this IMap map,
Location
location) =>
203
public static Task OpenAsync(this IMap map,
Location
location, MapLaunchOptions options)
222
public static Task<bool> TryOpenAsync(this IMap map,
Location
location) =>
234
public static Task<bool> TryOpenAsync(this IMap map,
Location
location, MapLaunchOptions options)
Types\Location.shared.cs (19)
43
/// Initializes a new instance of the <see cref="
Location
"/> class.
50
/// Initializes a new instance of the <see cref="
Location
"/> class with the specified latitude and longitude.
59
/// Initializes a new instance of the <see cref="
Location
"/> class with the specified latitude, longitude, and timestamp.
83
/// Initializes a new instance of the <see cref="
Location
"/> class with the specified latitude, longitude, and altitude.
94
/// Initializes a new instance of the <see cref="
Location
"/> class from an existing instance.
96
/// <param name="point">A <see cref="
Location
"/> instance that will be used to clone.</param>
98
public Location(
Location
point)
186
public static double CalculateDistance(double latitudeStart, double longitudeStart,
Location
locationEnd, DistanceUnits units) =>
197
public static double CalculateDistance(
Location
locationStart, double latitudeEnd, double longitudeEnd, DistanceUnits units) =>
207
public static double CalculateDistance(
Location
locationStart,
Location
locationEnd, DistanceUnits units) =>
211
/// Calculate distance between two <see cref="
Location
"/> instances.
238
/// Returns a string representation of the current values of <see cref="
Location
"/>.
258
var
other = (
Location
)obj;
279
public static bool operator ==(
Location
left,
Location
right)
290
public static bool operator !=(
Location
left,
Location
right)
Types\LocationExtensions.ios.tvos.watchos.macos.cs (3)
14
internal static
Location
ToLocation(this CLPlacemark placemark) =>
25
internal static IEnumerable<
Location
> ToLocations(this IEnumerable<CLPlacemark> placemarks) =>
28
internal static
Location
ToLocation(this CLLocation location, bool reducedAccuracy) =>
Types\LocationExtensions.shared.cs (14)
8
/// This class contains static extension methods for use with <see cref="
Location
"/> objects.
12
/// <inheritdoc cref="
Location
.CalculateDistance(double, double, double, double, DistanceUnits)"/>
13
public static double CalculateDistance(this
Location
locationStart, double latitudeEnd, double longitudeEnd, DistanceUnits units) =>
14
Location
.CalculateDistance(locationStart, latitudeEnd, longitudeEnd, units);
16
/// <inheritdoc cref="
Location
.CalculateDistance(
Location
,
Location
, DistanceUnits)"/>
17
public static double CalculateDistance(this
Location
locationStart,
Location
locationEnd, DistanceUnits units) =>
18
Location
.CalculateDistance(locationStart, locationEnd, units);
20
/// <inheritdoc cref="Map.OpenAsync(
Location
, MapLaunchOptions)"/>
21
public static Task OpenMapsAsync(this
Location
location, MapLaunchOptions options) =>
24
/// <inheritdoc cref="Map.OpenAsync(
Location
)"/>
25
public static Task OpenMapsAsync(this
Location
location) =>
Types\Placemark.shared.cs (1)
47
public
Location
Location { get; set; }
Microsoft.Maui.Maps (14)
Core\ICircleMapElement.cs (1)
13
Location
Center { get; }
Core\IGeoPathMapElement.cs (1)
6
public interface IGeoPathMapElement : IMapElement, IList<
Location
>
Core\IMap.cs (1)
54
void Clicked(
Location
position);
Core\IMapPin.cs (1)
24
Location
Location { get; }
Primitives\Distance.cs (2)
55
public static Distance BetweenPositions(
Location
position1,
Location
position2)
Primitives\GeographyUtils.cs (2)
16
public static List<
Location
> ToCircumferencePositions(this ICircleMapElement circle)
18
var positions = new List<
Location
>();
Primitives\MapSpan.cs (6)
11
public MapSpan(
Location
center, double latitudeDegrees, double longitudeDegrees)
18
public
Location
Center { get; }
52
public static MapSpan FromCenterAndRadius(
Location
center, Distance radius)
89
static double DistanceToLongitudeDegrees(
Location
location, Distance distance)
100
static double LatitudeCircumferenceKm(
Location
location)
110
static double LongitudeDegreesToKm(
Location
location, double longitudeDegrees)