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에서 도입되었습니다.)
|
설명
MapRoute 개체는 클래스의 메서드 MapRouteFinder 를 Route MapRouteFinderResult 호출할 때의 속성을 통해 반환됩니다.
MapRoute를 표시MapControl하려면 MapRoute를 MapRouteView 사용하여 생성하고 컬렉션에 Routes MapControl추가 MapRouteView 합니다.
유니버설 Windows 앱은 네임스페이스에서 서비스를 Windows.Services.Maps 사용하고 MapControl 매핑하기 전에 인증되어야 합니다. 앱을 인증하려면 지도 인증 키를 지정해야 합니다.
버전 기록
| Windows 버전 | SDK 버전 | 추가된 값 |
|---|---|---|
| 1703 | 15063 | DurationWithoutTraffic |
| 1703 | 15063 | TrafficCongestion |
| 1709 | 16299 | IsScenic |
속성
| BoundingBox |
경로가 포함된 경계 상자를 가져옵니다. |
| DurationWithoutTraffic |
트래픽 없이 경로를 트래버스하는 데 필요한 예상 시간을 가져옵니다. |
| EstimatedDuration |
경로를 트래버스하는 데 필요한 예상 시간을 가져옵니다. |
| HasBlockedRoads |
차단된 도로를 방지하기 위해 경로가 "최적" 경로에서 수정되었음을 나타내는 값을 가져옵니다. |
| IsScenic |
경치 좋은 도로를 기반으로 하는지 여부를 MapRoute 나타내는 값을 가져옵니다. |
| IsTrafficBased |
트래픽을 기반으로 하는지 여부를 MapRoute 나타내는 값을 가져옵니다. |
| Legs |
경로와 연결된 다리 목록을 가져옵니다. |
| LengthInMeters |
경로 길이(미터)를 가져옵니다. |
| Path |
경로의 경로를 가져옵니다. |
| TrafficCongestion |
지도 경로를 따라 교통 혼잡의 수준을 가져옵니다. |
| ViolatedRestrictions |
경로에서 제한을 위반했는지를 나타내는 값을 가져옵니다. |
적용 대상
추가 정보
피드백
다음에 대한 사용자 의견 제출 및 보기