Enumerations

The following enumerations are available globally.

  • Enumeration of the coordinate formats used and supported by the NavigationSDK. The values can be used for coordinate transformations between different formats. The NavigationSDKs method [NSDK_UIMapView transformCoordinatesWithSourceFormat:] is the method to use for this purpose.

    Geodez

    The Geodez-format is nothing else than the well known WGS84 coordinate format. For further explanation of this format please consult WGS84.

    Mercator

    The PTV Mercator projection is a Spherical Mercator projection. This term is used by the GIS community to refer to the fact that Spherical Mercator uses the WGS 84 datum, but a Mercator projection which treats the earth as a sphere, rather than a projection which treats the earth as an ellipsoid. For more information about sperical mercator see Sperical Mercator.

    The PTV Mercator assumes an earth radius of 6371km. Therefore a simple method to convert from WGS84 and PTV Mercator would be:

         //LatLonToPtvMercator
         double x = 6371000.0 * longitude * Math.PI / 180.0;
         double y = 6371000.0 * Math.Log(Math.Tan(Math.PI / 4.0 + latitude * Math.PI / 360.0));
     

    PTV Mercator vs. Google Mercator
    PTV and Google both use the same Spherical Mercator projection. Consult Google Maps deconstructed. The formula for calculating y from the latitude looks different, but it is the same because you can write log(tan(pi/4 + lat/2)) as 1/2log(1+sin(lat)/(1-sin(lat)). The only difference is the underlying earth radius. PTV (and ESRI SRID 53004) use 6371 km (the mean between major and minor axis of WGS 84), while Google, Microsoft, OSM and Yahoo use 6378137 meters (the major axis of WGS 84). Looking at the formula above, we see that the conversion between PTV and Google is quite simple.

         //PtvToGoogle
         double googleX = (6378137.0 / 6371000.0) * ptvX;
         double googleY = (6378137.0 / 6371000.0) * ptvY;
     

    Pixel

    The Pixel coordinate format is defined as the number of pixels measured from the lower left corner of the screen.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_CoordinateSystem {}
  • Enumeration for transforming Country Codes.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_CountryCodeFormat {}
  • This enumeration describes the different types of street crossings at a maneuver point.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_CrossingViewMode {}
  • An enumeration of various guidance kinds, extending the classical turn-by-turn scheme.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_GuidanceKind {}
  • Enumeration for the different manoeuvre arrows.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_ManeuverArrow {}
  • Enumeration for the different manoeuvre directions.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_ManeuverDirection {}
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM (NSInteger, NSDK_ManeuverTextID) {
        
        NSDK_MG_guidance_1000m_sample = 0,
        NSDK_MG_guidance_1000yd_sample = 1,
        NSDK_MG_guidance_100m_sample = 2,
        NSDK_MG_guidance_100yd_sample = 3,
        NSDK_MG_guidance_1200m_sample = 4,
        NSDK_MG_guidance_1200yd_sample = 5,
        NSDK_MG_guidance_1400m_sample = 6,
        NSDK_MG_guidance_1400yd_sample = 7,
        NSDK_MG_guidance_1500m_sample = 8,
        NSDK_MG_guidance_1500yd_sample = 9,
        NSDK_MG_guidance_150m_sample = 10,
        NSDK_MG_guidance_150yd_sample = 11,
        NSDK_MG_guidance_1600m_sample = 12,
        NSDK_MG_guidance_1600yd_sample = 13,
        NSDK_MG_guidance_1800m_sample = 14,
        NSDK_MG_guidance_1800yd_sample = 15,
        NSDK_MG_guidance_1_0km_sample = 16,
        NSDK_MG_guidance_1_0mi_sample = 17,
        NSDK_MG_guidance_1_1km_sample = 18,
        NSDK_MG_guidance_1_1mi_sample = 19,
        NSDK_MG_guidance_1_2km_sample = 20,
        NSDK_MG_guidance_1_2mi_sample = 21,
        NSDK_MG_guidance_1_3km_sample = 22,
        NSDK_MG_guidance_1_3mi_sample = 23,
        NSDK_MG_guidance_1_4km_sample = 24,
        NSDK_MG_guidance_1_4mi_sample = 25,
        NSDK_MG_guidance_1_5km_sample = 26,
        NSDK_MG_guidance_1_5mi_sample = 27,
        NSDK_MG_guidance_1_6km_sample = 28,
        NSDK_MG_guidance_1_6mi_sample = 29,
        NSDK_MG_guidance_1_7km_sample = 30,
        NSDK_MG_guidance_1_7mi_sample = 31,
        NSDK_MG_guidance_1_8km_sample = 32,
        NSDK_MG_guidance_1_8mi_sample = 33,
        NSDK_MG_guidance_1_9km_sample = 34,
        NSDK_MG_guidance_2000m_sample = 35,
        NSDK_MG_guidance_2000yd_sample = 36,
        NSDK_MG_guidance_200m_sample = 37,
        NSDK_MG_guidance_200yd_sample = 38,
        NSDK_MG_guidance_2500m_sample = 39,
        NSDK_MG_guidance_2500yd_sample = 40,
        NSDK_MG_guidance_250m_sample = 41,
        NSDK_MG_guidance_250yd_sample = 42,
        NSDK_MG_guidance_2_0km_sample = 43,
        NSDK_MG_guidance_2_0mi_sample = 44,
        NSDK_MG_guidance_2_1km_sample = 45,
        NSDK_MG_guidance_2_2km_sample = 46,
        NSDK_MG_guidance_2_3km_sample = 47,
        NSDK_MG_guidance_2_4km_sample = 48,
        NSDK_MG_guidance_2_5km_sample = 49,
        NSDK_MG_guidance_2_6km_sample = 50,
        NSDK_MG_guidance_2_7km_sample = 51,
        NSDK_MG_guidance_2_8km_sample = 52,
        NSDK_MG_guidance_2_9km_sample = 53,
        NSDK_MG_guidance_3000m_sample = 54,
        NSDK_MG_guidance_3000yd_sample = 55,
        NSDK_MG_guidance_300m_sample = 56,
        NSDK_MG_guidance_300yd_sample = 57,
        NSDK_MG_guidance_3500m_sample = 58,
        NSDK_MG_guidance_3500yd_sample = 59,
        NSDK_MG_guidance_350m_sample = 60,
        NSDK_MG_guidance_350yd_sample = 61,
        NSDK_MG_guidance_3_0km_sample = 62,
        NSDK_MG_guidance_3_0mi_sample = 63,
        NSDK_MG_guidance_3_5km_sample = 64,
        NSDK_MG_guidance_4000m_sample = 65,
        NSDK_MG_guidance_4000yd_sample = 66,
        NSDK_MG_guidance_400m_sample = 67,
        NSDK_MG_guidance_400yd_sample = 68,
        NSDK_MG_guidance_4500m_sample = 69,
        NSDK_MG_guidance_4500yd_sample = 70,
        NSDK_MG_guidance_4_0km_sample = 71,
        NSDK_MG_guidance_4_0mi_sample = 72,
        NSDK_MG_guidance_4_5km_sample = 73,
        NSDK_MG_guidance_500m_sample = 74,
        NSDK_MG_guidance_500yd_sample = 75,
        NSDK_MG_guidance_50m_sample = 76,
        NSDK_MG_guidance_50yd_sample = 77,
        NSDK_MG_guidance_5_0km_sample = 78,
        NSDK_MG_guidance_5_0mi_sample = 79,
        NSDK_MG_guidance_600m_sample = 80,
        NSDK_MG_guidance_600yd_sample = 81,
        NSDK_MG_guidance_6_0km_sample = 82,
        NSDK_MG_guidance_6_0mi_sample = 83,
        NSDK_MG_guidance_700m_sample = 84,
        NSDK_MG_guidance_700yd_sample = 85,
        NSDK_MG_guidance_7_0km_sample = 86,
        NSDK_MG_guidance_7_0mi_sample = 87,
        NSDK_MG_guidance_800m_sample = 88,
        NSDK_MG_guidance_800yd_sample = 89,
        NSDK_MG_guidance_8_0km_sample = 90,
        NSDK_MG_guidance_8_0mi_sample = 91,
        NSDK_MG_guidance_900m_sample = 92,
        NSDK_MG_guidance_900yd_sample = 93,
        NSDK_MG_guidance_9_0km_sample = 94,
        NSDK_MG_guidance_9_0mi_sample = 95,
        NSDK_MG_guidance_border = 96,
        NSDK_MG_guidance_border_sample = 97,
        NSDK_MG_guidance_continue = 98,
        NSDK_MG_guidance_continue_sample = 99,
        NSDK_MG_guidance_distMan1 = 100,
        NSDK_MG_guidance_distMan1ThenMan2 = 101,
        NSDK_MG_guidance_distMan1ThenMan2_sample = 102,
        NSDK_MG_guidance_distMan1_sample = 103,
        NSDK_MG_guidance_endOfStreetMan = 104,
        NSDK_MG_guidance_endOfStreetMan_sample = 105,
        NSDK_MG_guidance_ferryEnter = 106,
        NSDK_MG_guidance_ferryEnter_sample = 107,
        NSDK_MG_guidance_ferryExit = 108,
        NSDK_MG_guidance_ferryExit_sample = 109,
        NSDK_MG_guidance_followRoad = 110,
        NSDK_MG_guidance_followRoad_sample = 111,
        NSDK_MG_guidance_holdHalfLeft = 112,
        NSDK_MG_guidance_holdHalfLeft_sample = 113,
        NSDK_MG_guidance_holdHalfRight = 114,
        NSDK_MG_guidance_holdHalfRight_sample = 115,
        NSDK_MG_guidance_holdStraight = 116,
        NSDK_MG_guidance_holdStraight_sample = 117,
        NSDK_MG_guidance_motorroadEnter = 118,
        NSDK_MG_guidance_motorroadEnter_sample = 119,
        NSDK_MG_guidance_motorroadExit = 120,
        NSDK_MG_guidance_motorroadExit_sample = 121,
        NSDK_MG_guidance_motorwayEnter = 122,
        NSDK_MG_guidance_motorwayEnter_sample = 123,
        NSDK_MG_guidance_motorwayExit = 124,
        NSDK_MG_guidance_motorwayExit_sample = 125,
        NSDK_MG_guidance_motorwayTurnHalfLeft = 126,
        NSDK_MG_guidance_motorwayTurnHalfLeft_sample = 127,
        NSDK_MG_guidance_motorwayTurnHalfRight = 128,
        NSDK_MG_guidance_motorwayTurnHalfRight_sample = 129,
        NSDK_MG_guidance_motorwayTurnLeft = 130,
        NSDK_MG_guidance_motorwayTurnLeft_sample = 131,
        NSDK_MG_guidance_motorwayTurnRight = 132,
        NSDK_MG_guidance_motorwayTurnRight_sample = 133,
        NSDK_MG_guidance_now = 134,
        NSDK_MG_guidance_nowMan1 = 135,
        NSDK_MG_guidance_nowMan1ThenMan2 = 136,
        NSDK_MG_guidance_nowMan1ThenMan2_sample = 137,
        NSDK_MG_guidance_nowMan1_sample = 138,
        NSDK_MG_guidance_now_sample = 139,
        NSDK_MG_guidance_roundaboutExit1 = 140,
        NSDK_MG_guidance_roundaboutExit10 = 141,
        NSDK_MG_guidance_roundaboutExit10_sample = 142,
        NSDK_MG_guidance_roundaboutExit11 = 143,
        NSDK_MG_guidance_roundaboutExit11_sample = 144,
        NSDK_MG_guidance_roundaboutExit12 = 145,
        NSDK_MG_guidance_roundaboutExit12_sample = 146,
        NSDK_MG_guidance_roundaboutExit1_sample = 147,
        NSDK_MG_guidance_roundaboutExit2 = 148,
        NSDK_MG_guidance_roundaboutExit2_sample = 149,
        NSDK_MG_guidance_roundaboutExit3 = 150,
        NSDK_MG_guidance_roundaboutExit3_sample = 151,
        NSDK_MG_guidance_roundaboutExit4 = 152,
        NSDK_MG_guidance_roundaboutExit4_sample = 153,
        NSDK_MG_guidance_roundaboutExit5 = 154,
        NSDK_MG_guidance_roundaboutExit5_sample = 155,
        NSDK_MG_guidance_roundaboutExit6 = 156,
        NSDK_MG_guidance_roundaboutExit6_sample = 157,
        NSDK_MG_guidance_roundaboutExit7 = 158,
        NSDK_MG_guidance_roundaboutExit7_sample = 159,
        NSDK_MG_guidance_roundaboutExit8 = 160,
        NSDK_MG_guidance_roundaboutExit8_sample = 161,
        NSDK_MG_guidance_roundaboutExit9 = 162,
        NSDK_MG_guidance_roundaboutExit9_sample = 163,
        NSDK_MG_guidance_startAreaExit = 164,
        NSDK_MG_guidance_startAreaExit_sample = 165,
        NSDK_MG_guidance_stopover = 166,
        NSDK_MG_guidance_stopover_sample = 167,
        NSDK_MG_guidance_straightLeft = 168,
        NSDK_MG_guidance_straightLeft_sample = 169,
        NSDK_MG_guidance_straightRight = 170,
        NSDK_MG_guidance_straightRight_sample = 171,
        NSDK_MG_guidance_streetDirection = 172,
        NSDK_MG_guidance_streetDirectionSep = 173,
        NSDK_MG_guidance_streetDirectionSep_sample = 174,
        NSDK_MG_guidance_streetDirection_sample = 175,
        NSDK_MG_guidance_targetAreaEnter = 176,
        NSDK_MG_guidance_targetAreaEnterRouteList = 177,
        NSDK_MG_guidance_targetAreaEnterRouteList_sample = 178,
        NSDK_MG_guidance_targetAreaEnter_sample = 179,
        NSDK_MG_guidance_targetReached = 180,
        NSDK_MG_guidance_targetReached_sample = 181,
        NSDK_MG_guidance_tunnelAfter = 182,
        NSDK_MG_guidance_tunnelAfter_sample = 183,
        NSDK_MG_guidance_tunnelIn = 184,
        NSDK_MG_guidance_tunnelIn_sample = 185,
        NSDK_MG_guidance_turnAround = 186,
        NSDK_MG_guidance_turnAround_sample = 187,
        NSDK_MG_guidance_turnLeft = 188,
        NSDK_MG_guidance_turnLeft_sample = 189,
        NSDK_MG_guidance_turnRight = 190,
        NSDK_MG_guidance_turnRight_sample = 191,
        NSDK_MG_guidance_uTurn = 192,
        NSDK_MG_guidance_uTurn_sample = 193
    }

    Swift

    enum NSDK_ManeuverTextID : Int
  • Enumeration for the different manoeuvre types.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_ManeuverType {}
  • Enumeration for the different manoeuvre weights.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_ManeuverWeight {}
  • Enumeration for the different kinds of POI search.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_POISearchKind {}
  • ReRouting status modes.

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_ReRouteMode {}
  • Enum for Address search

    @author PTV AG Karlsruhe

    See more

    Declaration

    Objective-C

    enum NSDK_SearchKind {}
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM (NSInteger, NSDK_TrafficSearchResultCategory) {
        NSDK_TSC_DEFAULT = 0,
        NSDK_TSC_NONRELEVANT = 1,
        NSDK_TSC_JAM = 2,
        NSDK_TSC_HEAVY = 3,
        NSDK_TSC_BLOCKED = 4
    }

    Swift

    enum NSDK_TrafficSearchResultCategory : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, NSDK_MapMarkerStyle) {
        MapMarkerStyleNone,
        MapMarkerStyleRound,
        MapMarkerStyleDirected
    }

    Swift

    enum NSDK_MapMarkerStyle : Int