MapLocationFinder
MapLocationFinder
MapLocationFinder
MapLocationFinder
Class
Definition
Provides methods to convert addresses to geographic locations (geocoding) and to convert geographic locations to addresses (reverse geocoding).
public : static class MapLocationFinderpublic static class MapLocationFinderPublic Static Class MapLocationFinder// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Your Universal Windows app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.
See Request a maps authentication key.
Methods
FindLocationsAsync(String, Geopoint) FindLocationsAsync(String, Geopoint) FindLocationsAsync(String, Geopoint) FindLocationsAsync(String, Geopoint)
Converts the specified address to a collection of geographic locations (geocoding), using the specified reference point as a query hint.
public : static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(PlatForm::String searchText, Geopoint referencePoint)public static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(String searchText, Geopoint referencePoint)Public Static Function FindLocationsAsync(searchText As String, referencePoint As Geopoint) As IAsyncOperation( Of MapLocationFinderResult )// This API is not available in Javascript.
- searchText
- PlatForm::String String String String
The query for which you want to get locations.
When this method completes successfully, it returns a list of locations contained in the MapLocationFinderResult.
- See Also
FindLocationsAsync(String, Geopoint, UInt32) FindLocationsAsync(String, Geopoint, UInt32) FindLocationsAsync(String, Geopoint, UInt32) FindLocationsAsync(String, Geopoint, UInt32)
Converts the specified address to a collection of geographic locations (geocoding), using the specified reference point as a query hint. The list contains no more than the specified maximum number of results.
public : static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(PlatForm::String searchText, Geopoint referencePoint, unsigned int maxCount)public static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(String searchText, Geopoint referencePoint, UInt32 maxCount)Public Static Function FindLocationsAsync(searchText As String, referencePoint As Geopoint, maxCount As UInt32) As IAsyncOperation( Of MapLocationFinderResult )// This API is not available in Javascript.
- searchText
- PlatForm::String String String String
The query for which you want to get locations.
- maxCount
- unsigned int UInt32 UInt32 UInt32
The maximum number of locations to get.
When this method completes successfully, it returns a list of locations contained in the MapLocationFinderResult.
- See Also
FindLocationsAtAsync(Geopoint) FindLocationsAtAsync(Geopoint) FindLocationsAtAsync(Geopoint) FindLocationsAtAsync(Geopoint)
Converts a geographic location to a collection of addresses (reverse geocoding).
public : static IAsyncOperation<MapLocationFinderResult> FindLocationsAtAsync(Geopoint queryPoint)public static IAsyncOperation<MapLocationFinderResult> FindLocationsAtAsync(Geopoint queryPoint)Public Static Function FindLocationsAtAsync(queryPoint As Geopoint) As IAsyncOperation( Of MapLocationFinderResult )// This API is not available in Javascript.
When this method completes successfully, it returns a list of locations contained in the MapLocationFinderResult.
- See Also
FindLocationsAtAsync(Geopoint, MapLocationDesiredAccuracy) FindLocationsAtAsync(Geopoint, MapLocationDesiredAccuracy) FindLocationsAtAsync(Geopoint, MapLocationDesiredAccuracy) FindLocationsAtAsync(Geopoint, MapLocationDesiredAccuracy)
Converts a geopoint to a collection of addresses with the desired accuracy (reverse geocoding).
public : static IAsyncOperation<MapLocationFinderResult> FindLocationsAtAsync(Geopoint queryPoint, MapLocationDesiredAccuracy accuracy)public static IAsyncOperation<MapLocationFinderResult> FindLocationsAtAsync(Geopoint queryPoint, MapLocationDesiredAccuracy accuracy)Public Static Function FindLocationsAtAsync(queryPoint As Geopoint, accuracy As MapLocationDesiredAccuracy) As IAsyncOperation( Of MapLocationFinderResult )// This API is not available in Javascript.
- accuracy
- MapLocationDesiredAccuracy MapLocationDesiredAccuracy MapLocationDesiredAccuracy MapLocationDesiredAccuracy
The desired accuracy for which you want to get locations.
When this method completes successfully, it returns a list of locations contained in the MapLocationFinderResult.
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
- See Also