MapRoute 클래스

정의

둘 이상의 웨이포인트 간에 이동할 경로를 나타냅니다.

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
상속
Object Platform::Object IInspectable MapRoute
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

MapRouteFinder 클래스의 메서드를 호출하면 MapRouteFinderResultRoute 속성을 통해 MapRoute 개체가 반환됩니다.

MapControl에 MapRoute를 표시하려면 MapRoute를 사용하여 MapRouteView를 생성하고 MapRouteViewMapControlRoutes 컬렉션에 추가합니다.

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

경로에서 제한을 위반했는지를 나타내는 값을 가져옵니다.

적용 대상

추가 정보