// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Services_Maps_H #define WINRT_Windows_Services_Maps_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/impl/Windows.Devices.Geolocation.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.UI.Popups.2.h" #include "winrt/impl/Windows.Services.Maps.2.h" namespace winrt::impl { template auto consume_Windows_Services_Maps_IEnhancedWaypoint::Point() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IEnhancedWaypoint)->get_Point(&value)); return winrt::Windows::Devices::Geolocation::Geopoint{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IEnhancedWaypoint::Kind() const { winrt::Windows::Services::Maps::WaypointKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IEnhancedWaypoint)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IEnhancedWaypointFactory::Create(winrt::Windows::Devices::Geolocation::Geopoint const& point, winrt::Windows::Services::Maps::WaypointKind const& kind) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IEnhancedWaypointFactory)->Create(*(void**)(&point), static_cast(kind), &value)); return winrt::Windows::Services::Maps::EnhancedWaypoint{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IManeuverWarning::Kind() const { winrt::Windows::Services::Maps::ManeuverWarningKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IManeuverWarning)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IManeuverWarning::Severity() const { winrt::Windows::Services::Maps::ManeuverWarningSeverity value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IManeuverWarning)->get_Severity(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapAddress::BuildingName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_BuildingName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::BuildingFloor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_BuildingFloor(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::BuildingRoom() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_BuildingRoom(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::BuildingWing() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_BuildingWing(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::StreetNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_StreetNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::Street() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_Street(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::Neighborhood() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_Neighborhood(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::District() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_District(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::Town() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_Town(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::Region() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_Region(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::RegionCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_RegionCode(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::Country() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_Country(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::CountryCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_CountryCode(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::PostCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_PostCode(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress::Continent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress)->get_Continent(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapAddress2::FormattedAddress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapAddress2)->get_FormattedAddress(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocation::Point() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocation)->get_Point(&value)); return winrt::Windows::Devices::Geolocation::Geopoint{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocation::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocation)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocation::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocation)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocation::Address() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocation)->get_Address(&value)); return winrt::Windows::Services::Maps::MapAddress{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocationFinderResult::Locations() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocationFinderResult)->get_Locations(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocationFinderResult::Status() const { winrt::Windows::Services::Maps::MapLocationFinderStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocationFinderResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapLocationFinderStatics::FindLocationsAtAsync(winrt::Windows::Devices::Geolocation::Geopoint const& queryPoint) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocationFinderStatics)->FindLocationsAtAsync(*(void**)(&queryPoint), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocationFinderStatics::FindLocationsAsync(param::hstring const& searchText, winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocationFinderStatics)->FindLocationsAsync(*(void**)(&searchText), *(void**)(&referencePoint), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocationFinderStatics::FindLocationsAsync(param::hstring const& searchText, winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint, uint32_t maxCount) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocationFinderStatics)->FindLocationsWithMaxCountAsync(*(void**)(&searchText), *(void**)(&referencePoint), maxCount, &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapLocationFinderStatics2::FindLocationsAtAsync(winrt::Windows::Devices::Geolocation::Geopoint const& queryPoint, winrt::Windows::Services::Maps::MapLocationDesiredAccuracy const& accuracy) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapLocationFinderStatics2)->FindLocationsAtWithAccuracyAsync(*(void**)(&queryPoint), static_cast(accuracy), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapManagerStatics::ShowDownloadedMapsUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapManagerStatics)->ShowDownloadedMapsUI()); } template auto consume_Windows_Services_Maps_IMapManagerStatics::ShowMapsUpdateUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapManagerStatics)->ShowMapsUpdateUI()); } template auto consume_Windows_Services_Maps_IMapRoute::BoundingBox() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute)->get_BoundingBox(&value)); return winrt::Windows::Devices::Geolocation::GeoboundingBox{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRoute::LengthInMeters() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute)->get_LengthInMeters(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRoute::EstimatedDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute)->get_EstimatedDuration(put_abi(value))); return value; } template auto consume_Windows_Services_Maps_IMapRoute::Path() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute)->get_Path(&value)); return winrt::Windows::Devices::Geolocation::Geopath{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRoute::Legs() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute)->get_Legs(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRoute::IsTrafficBased() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute)->get_IsTrafficBased(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRoute2::ViolatedRestrictions() const { winrt::Windows::Services::Maps::MapRouteRestrictions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute2)->get_ViolatedRestrictions(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRoute2::HasBlockedRoads() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute2)->get_HasBlockedRoads(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRoute3::DurationWithoutTraffic() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute3)->get_DurationWithoutTraffic(put_abi(value))); return value; } template auto consume_Windows_Services_Maps_IMapRoute3::TrafficCongestion() const { winrt::Windows::Services::Maps::TrafficCongestion value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute3)->get_TrafficCongestion(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRoute4::IsScenic() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRoute4)->get_IsScenic(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::MaxAlternateRouteCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->get_MaxAlternateRouteCount(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::MaxAlternateRouteCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->put_MaxAlternateRouteCount(value)); } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::InitialHeading() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->get_InitialHeading(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::InitialHeading(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->put_InitialHeading(*(void**)(&value))); } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::RouteOptimization() const { winrt::Windows::Services::Maps::MapRouteOptimization value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->get_RouteOptimization(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::RouteOptimization(winrt::Windows::Services::Maps::MapRouteOptimization const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->put_RouteOptimization(static_cast(value))); } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::RouteRestrictions() const { winrt::Windows::Services::Maps::MapRouteRestrictions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->get_RouteRestrictions(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions::RouteRestrictions(winrt::Windows::Services::Maps::MapRouteRestrictions const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions)->put_RouteRestrictions(static_cast(value))); } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions2::DepartureTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions2)->get_DepartureTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteDrivingOptions2::DepartureTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteDrivingOptions2)->put_DepartureTime(*(void**)(&value))); } template auto consume_Windows_Services_Maps_IMapRouteFinderResult::Route() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderResult)->get_Route(&value)); return winrt::Windows::Services::Maps::MapRoute{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderResult::Status() const { winrt::Windows::Services::Maps::MapRouteFinderStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteFinderResult2::AlternateRoutes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderResult2)->get_AlternateRoutes(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteAsync(*(void**)(&startPoint), *(void**)(&endPoint), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteWithOptimizationAsync(*(void**)(&startPoint), *(void**)(&endPoint), static_cast(optimization), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteWithOptimizationAndRestrictionsAsync(*(void**)(&startPoint), *(void**)(&endPoint), static_cast(optimization), static_cast(restrictions), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions, double headingInDegrees) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync(*(void**)(&startPoint), *(void**)(&endPoint), static_cast(optimization), static_cast(restrictions), headingInDegrees, &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteFromWaypointsAsync(*(void**)(&wayPoints), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteFromWaypointsAndOptimizationAsync(*(void**)(&wayPoints), static_cast(optimization), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(*(void**)(&wayPoints), static_cast(optimization), static_cast(restrictions), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions, double headingInDegrees) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync(*(void**)(&wayPoints), static_cast(optimization), static_cast(restrictions), headingInDegrees, &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetWalkingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetWalkingRouteAsync(*(void**)(&startPoint), *(void**)(&endPoint), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics::GetWalkingRouteFromWaypointsAsync(param::async_iterable const& wayPoints) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics)->GetWalkingRouteFromWaypointsAsync(*(void**)(&wayPoints), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics2::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteDrivingOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics2)->GetDrivingRouteWithOptionsAsync(*(void**)(&startPoint), *(void**)(&endPoint), *(void**)(&options), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics3::GetDrivingRouteFromEnhancedWaypointsAsync(param::async_iterable const& waypoints) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics3)->GetDrivingRouteFromEnhancedWaypointsAsync(*(void**)(&waypoints), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteFinderStatics3::GetDrivingRouteFromEnhancedWaypointsAsync(param::async_iterable const& waypoints, winrt::Windows::Services::Maps::MapRouteDrivingOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteFinderStatics3)->GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync(*(void**)(&waypoints), *(void**)(&options), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteLeg::BoundingBox() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg)->get_BoundingBox(&value)); return winrt::Windows::Devices::Geolocation::GeoboundingBox{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteLeg::Path() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg)->get_Path(&value)); return winrt::Windows::Devices::Geolocation::Geopath{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteLeg::LengthInMeters() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg)->get_LengthInMeters(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRouteLeg::EstimatedDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg)->get_EstimatedDuration(put_abi(value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteLeg::Maneuvers() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg)->get_Maneuvers(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteLeg2::DurationWithoutTraffic() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg2)->get_DurationWithoutTraffic(put_abi(value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteLeg2::TrafficCongestion() const { winrt::Windows::Services::Maps::TrafficCongestion value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteLeg2)->get_TrafficCongestion(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteManeuver::StartingPoint() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver)->get_StartingPoint(&value)); return winrt::Windows::Devices::Geolocation::Geopoint{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteManeuver::LengthInMeters() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver)->get_LengthInMeters(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRouteManeuver::InstructionText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver)->get_InstructionText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteManeuver::Kind() const { winrt::Windows::Services::Maps::MapRouteManeuverKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteManeuver::ExitNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver)->get_ExitNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteManeuver::ManeuverNotices() const { winrt::Windows::Services::Maps::MapManeuverNotices value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver)->get_ManeuverNotices(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IMapRouteManeuver2::StartHeading() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver2)->get_StartHeading(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRouteManeuver2::EndHeading() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver2)->get_EndHeading(&value)); return value; } template auto consume_Windows_Services_Maps_IMapRouteManeuver2::StreetName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver2)->get_StreetName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapRouteManeuver3::Warnings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapRouteManeuver3)->get_Warnings(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapServiceStatics::ServiceToken(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapServiceStatics)->put_ServiceToken(*(void**)(&value))); } template auto consume_Windows_Services_Maps_IMapServiceStatics::ServiceToken() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapServiceStatics)->get_ServiceToken(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapServiceStatics2::WorldViewRegionCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapServiceStatics2)->get_WorldViewRegionCode(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapServiceStatics3::DataAttributions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapServiceStatics3)->get_DataAttributions(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IMapServiceStatics4::DataUsagePreference(winrt::Windows::Services::Maps::MapServiceDataUsagePreference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapServiceStatics4)->put_DataUsagePreference(static_cast(value))); } template auto consume_Windows_Services_Maps_IMapServiceStatics4::DataUsagePreference() const { winrt::Windows::Services::Maps::MapServiceDataUsagePreference value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IMapServiceStatics4)->get_DataUsagePreference(reinterpret_cast(&value))); return value; } template auto consume_Windows_Services_Maps_IPlaceInfo::Show(winrt::Windows::Foundation::Rect const& selection) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfo)->Show(impl::bind_in(selection))); } template auto consume_Windows_Services_Maps_IPlaceInfo::Show(winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfo)->ShowWithPreferredPlacement(impl::bind_in(selection), static_cast(preferredPlacement))); } template auto consume_Windows_Services_Maps_IPlaceInfo::Identifier() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfo)->get_Identifier(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfo::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfo)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfo::DisplayAddress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfo)->get_DisplayAddress(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfo::Geoshape() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfo)->get_Geoshape(&value)); return winrt::Windows::Devices::Geolocation::IGeoshape{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoCreateOptions::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoCreateOptions)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_Services_Maps_IPlaceInfoCreateOptions::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoCreateOptions)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoCreateOptions::DisplayAddress(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoCreateOptions)->put_DisplayAddress(*(void**)(&value))); } template auto consume_Windows_Services_Maps_IPlaceInfoCreateOptions::DisplayAddress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoCreateOptions)->get_DisplayAddress(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics::Create(winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics)->Create(*(void**)(&referencePoint), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics::Create(winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint, winrt::Windows::Services::Maps::PlaceInfoCreateOptions const& options) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics)->CreateWithGeopointAndOptions(*(void**)(&referencePoint), *(void**)(&options), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics::CreateFromIdentifier(param::hstring const& identifier) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics)->CreateFromIdentifier(*(void**)(&identifier), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics::CreateFromIdentifier(param::hstring const& identifier, winrt::Windows::Devices::Geolocation::Geopoint const& defaultPoint, winrt::Windows::Services::Maps::PlaceInfoCreateOptions const& options) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics)->CreateFromIdentifierWithOptions(*(void**)(&identifier), *(void**)(&defaultPoint), *(void**)(&options), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics::CreateFromMapLocation(winrt::Windows::Services::Maps::MapLocation const& location) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics)->CreateFromMapLocation(*(void**)(&location), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics::IsShowSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics)->get_IsShowSupported(&value)); return value; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics2::CreateFromAddress(param::hstring const& displayAddress) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics2)->CreateFromAddress(*(void**)(&displayAddress), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } template auto consume_Windows_Services_Maps_IPlaceInfoStatics2::CreateFromAddress(param::hstring const& displayAddress, param::hstring const& displayName) const { void* resultValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Maps::IPlaceInfoStatics2)->CreateFromAddressWithName(*(void**)(&displayAddress), *(void**)(&displayName), &resultValue)); return winrt::Windows::Services::Maps::PlaceInfo{ resultValue, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Point(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Point()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* point, int32_t kind, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&point), *reinterpret_cast(&kind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Severity(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Severity()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BuildingName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BuildingName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BuildingFloor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BuildingFloor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BuildingRoom(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BuildingRoom()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BuildingWing(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BuildingWing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StreetNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreetNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Street(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Street()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Neighborhood(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Neighborhood()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_District(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().District()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Town(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Town()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Region(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Region()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RegionCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RegionCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Country(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Country()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CountryCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CountryCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PostCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PostCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Continent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Continent()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FormattedAddress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FormattedAddress()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Point(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Point()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Description(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Address(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Address()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Locations(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Locations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindLocationsAtAsync(void* queryPoint, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindLocationsAtAsync(*reinterpret_cast(&queryPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindLocationsAsync(void* searchText, void* referencePoint, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindLocationsAsync(*reinterpret_cast(&searchText), *reinterpret_cast(&referencePoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindLocationsWithMaxCountAsync(void* searchText, void* referencePoint, uint32_t maxCount, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindLocationsAsync(*reinterpret_cast(&searchText), *reinterpret_cast(&referencePoint), maxCount)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindLocationsAtWithAccuracyAsync(void* queryPoint, int32_t accuracy, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindLocationsAtAsync(*reinterpret_cast(&queryPoint), *reinterpret_cast(&accuracy))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ShowDownloadedMapsUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowDownloadedMapsUI(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowMapsUpdateUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowMapsUpdateUI(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BoundingBox(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BoundingBox()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LengthInMeters(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LengthInMeters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EstimatedDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EstimatedDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Path(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Path()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Legs(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Legs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsTrafficBased(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTrafficBased()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViolatedRestrictions(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViolatedRestrictions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasBlockedRoads(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasBlockedRoads()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DurationWithoutTraffic(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DurationWithoutTraffic()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TrafficCongestion(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TrafficCongestion()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsScenic(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScenic()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MaxAlternateRouteCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxAlternateRouteCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxAlternateRouteCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxAlternateRouteCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InitialHeading(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InitialHeading()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InitialHeading(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InitialHeading(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RouteOptimization(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RouteOptimization()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RouteOptimization(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RouteOptimization(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RouteRestrictions(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RouteRestrictions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RouteRestrictions(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RouteRestrictions(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DepartureTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DepartureTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DepartureTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DepartureTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Route(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Route()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AlternateRoutes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AlternateRoutes()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDrivingRouteAsync(void* startPoint, void* endPoint, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteWithOptimizationAsync(void* startPoint, void* endPoint, int32_t optimization, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), *reinterpret_cast(&optimization))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteWithOptimizationAndRestrictionsAsync(void* startPoint, void* endPoint, int32_t optimization, uint32_t restrictions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), *reinterpret_cast(&optimization), *reinterpret_cast(&restrictions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync(void* startPoint, void* endPoint, int32_t optimization, uint32_t restrictions, double headingInDegrees, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), *reinterpret_cast(&optimization), *reinterpret_cast(&restrictions), headingInDegrees)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteFromWaypointsAsync(void* wayPoints, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast const*>(&wayPoints))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteFromWaypointsAndOptimizationAsync(void* wayPoints, int32_t optimization, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast const*>(&wayPoints), *reinterpret_cast(&optimization))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(void* wayPoints, int32_t optimization, uint32_t restrictions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast const*>(&wayPoints), *reinterpret_cast(&optimization), *reinterpret_cast(&restrictions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync(void* wayPoints, int32_t optimization, uint32_t restrictions, double headingInDegrees, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast const*>(&wayPoints), *reinterpret_cast(&optimization), *reinterpret_cast(&restrictions), headingInDegrees)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetWalkingRouteAsync(void* startPoint, void* endPoint, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetWalkingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetWalkingRouteFromWaypointsAsync(void* wayPoints, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetWalkingRouteFromWaypointsAsync(*reinterpret_cast const*>(&wayPoints))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDrivingRouteWithOptionsAsync(void* startPoint, void* endPoint, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDrivingRouteFromEnhancedWaypointsAsync(void* waypoints, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteFromEnhancedWaypointsAsync(*reinterpret_cast const*>(&waypoints))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync(void* waypoints, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDrivingRouteFromEnhancedWaypointsAsync(*reinterpret_cast const*>(&waypoints), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BoundingBox(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BoundingBox()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Path(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Path()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LengthInMeters(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LengthInMeters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EstimatedDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EstimatedDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Maneuvers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Maneuvers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DurationWithoutTraffic(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DurationWithoutTraffic()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TrafficCongestion(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TrafficCongestion()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_StartingPoint(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartingPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LengthInMeters(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LengthInMeters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstructionText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstructionText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExitNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExitNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManeuverNotices(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManeuverNotices()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_StartHeading(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartHeading()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EndHeading(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EndHeading()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StreetName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StreetName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Warnings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Warnings()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_ServiceToken(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ServiceToken(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceToken(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceToken()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WorldViewRegionCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WorldViewRegionCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataAttributions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataAttributions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_DataUsagePreference(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DataUsagePreference(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DataUsagePreference(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataUsagePreference()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Show(winrt::Windows::Foundation::Rect selection) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Show(*reinterpret_cast(&selection)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowWithPreferredPlacement(winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Show(*reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Identifier(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Identifier()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayAddress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayAddress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Geoshape(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Geoshape()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_DisplayName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayAddress(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayAddress(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayAddress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayAddress()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* referencePoint, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().Create(*reinterpret_cast(&referencePoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithGeopointAndOptions(void* referencePoint, void* options, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().Create(*reinterpret_cast(&referencePoint), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromIdentifier(void* identifier, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().CreateFromIdentifier(*reinterpret_cast(&identifier))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromIdentifierWithOptions(void* identifier, void* defaultPoint, void* options, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().CreateFromIdentifier(*reinterpret_cast(&identifier), *reinterpret_cast(&defaultPoint), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromMapLocation(void* location, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().CreateFromMapLocation(*reinterpret_cast(&location))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsShowSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsShowSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromAddress(void* displayAddress, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().CreateFromAddress(*reinterpret_cast(&displayAddress))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromAddressWithName(void* displayAddress, void* displayName, void** resultValue) noexcept final try { clear_abi(resultValue); typename D::abi_guard guard(this->shim()); *resultValue = detach_from(this->shim().CreateFromAddress(*reinterpret_cast(&displayAddress), *reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Services::Maps { constexpr auto operator|(MapManeuverNotices const left, MapManeuverNotices const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(MapManeuverNotices& left, MapManeuverNotices const right) noexcept { left = left | right; return left; } constexpr auto operator&(MapManeuverNotices const left, MapManeuverNotices const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(MapManeuverNotices& left, MapManeuverNotices const right) noexcept { left = left & right; return left; } constexpr auto operator~(MapManeuverNotices const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(MapManeuverNotices const left, MapManeuverNotices const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(MapManeuverNotices& left, MapManeuverNotices const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(MapRouteRestrictions const left, MapRouteRestrictions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(MapRouteRestrictions& left, MapRouteRestrictions const right) noexcept { left = left | right; return left; } constexpr auto operator&(MapRouteRestrictions const left, MapRouteRestrictions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(MapRouteRestrictions& left, MapRouteRestrictions const right) noexcept { left = left & right; return left; } constexpr auto operator~(MapRouteRestrictions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(MapRouteRestrictions const left, MapRouteRestrictions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(MapRouteRestrictions& left, MapRouteRestrictions const right) noexcept { left = left ^ right; return left; } inline EnhancedWaypoint::EnhancedWaypoint(winrt::Windows::Devices::Geolocation::Geopoint const& point, winrt::Windows::Services::Maps::WaypointKind const& kind) : EnhancedWaypoint(impl::call_factory([&](IEnhancedWaypointFactory const& f) { return f.Create(point, kind); })) { } inline auto MapLocationFinder::FindLocationsAtAsync(winrt::Windows::Devices::Geolocation::Geopoint const& queryPoint) { return impl::call_factory([&](IMapLocationFinderStatics const& f) { return f.FindLocationsAtAsync(queryPoint); }); } inline auto MapLocationFinder::FindLocationsAsync(param::hstring const& searchText, winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint) { return impl::call_factory([&](IMapLocationFinderStatics const& f) { return f.FindLocationsAsync(searchText, referencePoint); }); } inline auto MapLocationFinder::FindLocationsAsync(param::hstring const& searchText, winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint, uint32_t maxCount) { return impl::call_factory([&](IMapLocationFinderStatics const& f) { return f.FindLocationsAsync(searchText, referencePoint, maxCount); }); } inline auto MapLocationFinder::FindLocationsAtAsync(winrt::Windows::Devices::Geolocation::Geopoint const& queryPoint, winrt::Windows::Services::Maps::MapLocationDesiredAccuracy const& accuracy) { return impl::call_factory([&](IMapLocationFinderStatics2 const& f) { return f.FindLocationsAtAsync(queryPoint, accuracy); }); } inline auto MapManager::ShowDownloadedMapsUI() { impl::call_factory_cast([](IMapManagerStatics const& f) { return f.ShowDownloadedMapsUI(); }); } inline auto MapManager::ShowMapsUpdateUI() { impl::call_factory_cast([](IMapManagerStatics const& f) { return f.ShowMapsUpdateUI(); }); } inline MapRouteDrivingOptions::MapRouteDrivingOptions() : MapRouteDrivingOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto MapRouteFinder::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteAsync(startPoint, endPoint); }); } inline auto MapRouteFinder::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteAsync(startPoint, endPoint, optimization); }); } inline auto MapRouteFinder::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteAsync(startPoint, endPoint, optimization, restrictions); }); } inline auto MapRouteFinder::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions, double headingInDegrees) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteAsync(startPoint, endPoint, optimization, restrictions, headingInDegrees); }); } inline auto MapRouteFinder::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteFromWaypointsAsync(wayPoints); }); } inline auto MapRouteFinder::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteFromWaypointsAsync(wayPoints, optimization); }); } inline auto MapRouteFinder::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteFromWaypointsAsync(wayPoints, optimization, restrictions); }); } inline auto MapRouteFinder::GetDrivingRouteFromWaypointsAsync(param::async_iterable const& wayPoints, winrt::Windows::Services::Maps::MapRouteOptimization const& optimization, winrt::Windows::Services::Maps::MapRouteRestrictions const& restrictions, double headingInDegrees) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetDrivingRouteFromWaypointsAsync(wayPoints, optimization, restrictions, headingInDegrees); }); } inline auto MapRouteFinder::GetWalkingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetWalkingRouteAsync(startPoint, endPoint); }); } inline auto MapRouteFinder::GetWalkingRouteFromWaypointsAsync(param::async_iterable const& wayPoints) { return impl::call_factory([&](IMapRouteFinderStatics const& f) { return f.GetWalkingRouteFromWaypointsAsync(wayPoints); }); } inline auto MapRouteFinder::GetDrivingRouteAsync(winrt::Windows::Devices::Geolocation::Geopoint const& startPoint, winrt::Windows::Devices::Geolocation::Geopoint const& endPoint, winrt::Windows::Services::Maps::MapRouteDrivingOptions const& options) { return impl::call_factory([&](IMapRouteFinderStatics2 const& f) { return f.GetDrivingRouteAsync(startPoint, endPoint, options); }); } inline auto MapRouteFinder::GetDrivingRouteFromEnhancedWaypointsAsync(param::async_iterable const& waypoints) { return impl::call_factory([&](IMapRouteFinderStatics3 const& f) { return f.GetDrivingRouteFromEnhancedWaypointsAsync(waypoints); }); } inline auto MapRouteFinder::GetDrivingRouteFromEnhancedWaypointsAsync(param::async_iterable const& waypoints, winrt::Windows::Services::Maps::MapRouteDrivingOptions const& options) { return impl::call_factory([&](IMapRouteFinderStatics3 const& f) { return f.GetDrivingRouteFromEnhancedWaypointsAsync(waypoints, options); }); } inline auto MapService::ServiceToken(param::hstring const& value) { impl::call_factory([&](IMapServiceStatics const& f) { return f.ServiceToken(value); }); } inline auto MapService::ServiceToken() { return impl::call_factory_cast([](IMapServiceStatics const& f) { return f.ServiceToken(); }); } inline auto MapService::WorldViewRegionCode() { return impl::call_factory_cast([](IMapServiceStatics2 const& f) { return f.WorldViewRegionCode(); }); } inline auto MapService::DataAttributions() { return impl::call_factory_cast([](IMapServiceStatics3 const& f) { return f.DataAttributions(); }); } inline auto MapService::DataUsagePreference(winrt::Windows::Services::Maps::MapServiceDataUsagePreference const& value) { impl::call_factory([&](IMapServiceStatics4 const& f) { return f.DataUsagePreference(value); }); } inline auto MapService::DataUsagePreference() { return impl::call_factory_cast([](IMapServiceStatics4 const& f) { return f.DataUsagePreference(); }); } inline auto PlaceInfo::Create(winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint) { return impl::call_factory([&](IPlaceInfoStatics const& f) { return f.Create(referencePoint); }); } inline auto PlaceInfo::Create(winrt::Windows::Devices::Geolocation::Geopoint const& referencePoint, winrt::Windows::Services::Maps::PlaceInfoCreateOptions const& options) { return impl::call_factory([&](IPlaceInfoStatics const& f) { return f.Create(referencePoint, options); }); } inline auto PlaceInfo::CreateFromIdentifier(param::hstring const& identifier) { return impl::call_factory([&](IPlaceInfoStatics const& f) { return f.CreateFromIdentifier(identifier); }); } inline auto PlaceInfo::CreateFromIdentifier(param::hstring const& identifier, winrt::Windows::Devices::Geolocation::Geopoint const& defaultPoint, winrt::Windows::Services::Maps::PlaceInfoCreateOptions const& options) { return impl::call_factory([&](IPlaceInfoStatics const& f) { return f.CreateFromIdentifier(identifier, defaultPoint, options); }); } inline auto PlaceInfo::CreateFromMapLocation(winrt::Windows::Services::Maps::MapLocation const& location) { return impl::call_factory([&](IPlaceInfoStatics const& f) { return f.CreateFromMapLocation(location); }); } inline auto PlaceInfo::IsShowSupported() { return impl::call_factory_cast([](IPlaceInfoStatics const& f) { return f.IsShowSupported(); }); } inline auto PlaceInfo::CreateFromAddress(param::hstring const& displayAddress) { return impl::call_factory([&](IPlaceInfoStatics2 const& f) { return f.CreateFromAddress(displayAddress); }); } inline auto PlaceInfo::CreateFromAddress(param::hstring const& displayAddress, param::hstring const& displayName) { return impl::call_factory([&](IPlaceInfoStatics2 const& f) { return f.CreateFromAddress(displayAddress, displayName); }); } inline PlaceInfoCreateOptions::PlaceInfoCreateOptions() : PlaceInfoCreateOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif