MapRoute 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
둘 이상의 웨이포인트 간에 이동할 경로를 나타냅니다.
public ref class MapRoute sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapRoute final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapRoute
Public NotInheritable Class MapRoute
- 상속
- 특성
Windows 요구 사항
디바이스 패밀리 |
Windows 10 (10.0.10240.0에서 도입되었습니다.)
|
API contract |
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
|
설명
MapRouteFinder 클래스의 메서드를 호출하면 MapRouteFinderResult의 Route 속성을 통해 MapRoute 개체가 반환됩니다.
MapControl에 MapRoute를 표시하려면 MapRoute를 사용하여 MapRouteView를 생성하고 MapRouteView를 MapControl의 Routes 컬렉션에 추가합니다.
Windows.Services.Maps 네임스페이스에서 MapControl 및 map 서비스를 사용하려면 유니버설 Windows 앱을 인증해야 합니다. 앱을 인증하려면 지도 인증 키를 지정해야 합니다.
버전 기록
Windows 버전 | SDK 버전 | 추가된 값 |
---|---|---|
1703 | 15063 | DurationWithoutTraffic |
1703 | 15063 | TrafficCongestion |
1709 | 16299 | IsScenic |
속성
BoundingBox |
경로가 포함된 경계 상자를 가져옵니다. |
DurationWithoutTraffic |
트래픽 없이 경로를 트래버스하는 데 필요한 예상 시간을 가져옵니다. |
EstimatedDuration |
경로를 트래버스하는 데 필요한 예상 시간을 가져옵니다. |
HasBlockedRoads |
차단된 도로를 방지하기 위해 경로가 "최적" 경로에서 수정되었음을 나타내는 값을 가져옵니다. |
IsScenic |
MapRoute가 경치 좋은 도로를 기반으로 하는지 여부를 나타내는 값을 가져옵니다. |
IsTrafficBased |
MapRoute가 트래픽을 기반으로 하는지 여부를 나타내는 값을 가져옵니다. |
Legs |
경로와 연결된 다리 목록을 가져옵니다. |
LengthInMeters |
경로의 길이를 미터로 가져옵니다. |
Path |
경로의 경로를 가져옵니다. |
TrafficCongestion |
지도 경로를 따라 교통 정체 수준을 가져옵니다. |
ViolatedRestrictions |
경로에서 제한을 위반했는지를 나타내는 값을 가져옵니다. |
적용 대상
추가 정보
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기