CartoType UWP API 9.6-4-g79291b60b
for development in C#, VB.NET and C++
CartoTypeWrapper.h
1/*
2CartoTypeWrapper.h
3Copyright (C) CartoType Ltd 2011-2026.
4See www.cartotype.com for more information.
5*/
6
7/*
8C++/CX notes.
9
10This interface is written in C++/CX. To enable compilation for C++/CX use the /ZW compiler option.
11
12SEALED CLASSES: not sealing classes produces error 4585: A WinRT 'public ref class'
13must either be sealed or derive from an existing unsealed class.
14
15VECTOR TYPES: Windows::Foundation::Collections::IVector is used in parameters
16and return values. Platform::Collections::Vector is used when creating objects
17to be returned.
18See https://docs.microsoft.com/en-us/cpp/cppcx/platform-collections-vector-class?view=msvc-170:
19"If you attempt to use a Vector type in a public return value or parameter,
20compiler error C3986 is raised. You can fix the error by changing the parameter
21or return value type to Windows::Foundation::Collections::IVector. For more
22information, see Collections (C++/CX)."
23*/
24
25#pragma once
26
27#include "CartoTypeResult.h"
28#include "CartoTypeGeometry.h"
29#include "CartoTypeMetaData.h"
30#include "CartoTypeFeatureInfo.h"
31
32#include <collection.h>
33#include <ppltasks.h>
34#include <wrl.h>
35#include <robuffer.h>
36#include <algorithm>
37#include <memory>
38
39using namespace Platform;
40using namespace Platform::Collections;
41using namespace Platform::Metadata;
42using namespace Windows::Foundation::Collections;
43using namespace Windows::Graphics::Imaging;
44
45namespace CartoTypeCore
46{
47class Framework;
48class MapObject;
49class TCoordinateTransform;
50class NavigatorTurn;
51class MInternetAccessor;
52class Route;
53class RouteSegment;
54class RouteProfile;
55class NearestRoadInfo;
56class NearestSegmentInfo;
57class Address;
58class Legend;
59class MapRenderer;
60class RouteCoordSet;
61class NoticePosition;
62class TimeAndDistanceMatrix;
63class CVectorTileServer;
64class LRPoint;
65}
66
68namespace CartoType
69{
70
91// forward declarations
92ref class Framework;
93ref class Route;
94ref class Address;
95ref class Geometry;
96ref class Legend;
97
99public enum class MapObjectType
100 {
102 Point,
104 Line,
106 Polygon,
108 Array,
111 };
112
114public enum class StringMatchMethod
115 {
117 PrefixFlag = 1,
121 FoldAccentsFlag = 4,
123 FuzzyFlag = 8,
125 FoldCaseFlag = 16,
128
130 Exact = 0,
141 };
142
144public enum class LetterCase
145 {
147 None,
149 Lower,
151 Upper,
156 Title
157 };
158
160public ref class FindNearbyParam sealed
161 {
162 public:
163 FindNearbyParam() { Type = FeatureType::Invalid; }
164
166 property FeatureType Type;
168 property String^ Text;
170 property Geometry^ Location;
171 };
172
174public ref class FindParam sealed
175 {
176 public:
177 public:
180 FindParam(FindNearbyParam^ aFindNearbyParam);
181
183 property int MaxObjectCount;
185 property Geometry^ Clip;
187 property Geometry^ Location;
189 property String^ Layers;
196 property String^ Attributes;
201 property String^ Text;
208 property String^ Condition;
210 property bool Merge;
215 property double TimeOut;
216 };
217
219public ref class MapObjectMatch sealed
220 {
221 public:
223 property bool Found;
225 property String^ Key;
227 property String^ Value;
229 property int Start;
231 property int End;
232 };
233
235public ref class MapObject sealed: public Path
236 {
237 public:
239 property String^ Label { String^ get(); };
243 String^ StringAttribute(String^ aName);
245 IVector<String^>^ StringAttributes();
247 property int64_t Id { int64_t get(); }
249 property MapObjectType Type { MapObjectType get(); };
251 property String^ LayerName { String^ get(); }
253 property double Area { double get(); };
255 property double LengthOrPerimeter { double get(); }
262 property Point^ Center { Point^ get(); };
271 property Point^ CenterInDegrees { Point^ get(); };
273 property Rect^ BoundsInDegrees { Rect^ get(); };
275 property Geometry^ GeometryInDegrees { Geometry^ get(); };
277 property Rect^ Bounds { Rect^ get(); }
278
288 MapObjectMatch^ Match(String^ aText,StringMatchMethod aMatchMethod,String^ aAttributes,bool aPhrase);
290 virtual int ContourCount();
292 virtual int PointCount(int aContourIndex);
294 virtual PathPoint^ Point(int aContourIndex,int aPointIndex);
295
296 internal:
297 MapObject(std::unique_ptr<CartoTypeCore::MapObject> aMapObject);
298
299 internal:
300 std::unique_ptr<CartoTypeCore::MapObject> m_map_object;
301 };
302
303[Flags]
305public enum class FollowFlag : unsigned int
306 {
308 Location = 1,
310 Heading = 2,
312 Zoom = 4
313 };
314
315[Flags]
317public enum class FollowMode : unsigned int
318 {
320 None = 0,
329 };
330
331[Flags]
333public enum class ValidityFlag : unsigned int
334 {
336 Time = 1,
338 Position = 2,
340 Speed = 4,
342 Course = 8,
344 Height = 16
345 };
346
348public enum class NavigationState
349 {
351 None,
355 Turn,
357 OffRoute,
359 Routing,
361 NewRoute,
363 TurnRound,
365 Arrival,
368 };
369
371public ref class LocationMatchParam sealed
372 {
373 public:
379 property double LocationAccuracyInMeters;
385 property double HeadingAccuracyInDegrees;
391 property double MaxRoadDistanceInMeters;
392 };
393
395public enum class RouterType
396 {
398 Default,
409 TECH
410 };
411
420public enum class TurnType
421 {
423 None,
428 Ahead,
433 BearRight,
435 Right,
439 Around,
441 SharpLeft,
443 Left,
449 };
450
455public enum class RoundaboutState
456 {
458 None,
460 Enter,
462 Continue,
464 Exit
465 };
466
468public ref class Turn sealed
469 {
470 public:
474 void Clear();
475
477 property TurnType Type;
479 property bool IsContinue;
483 property double TurnAngle;
485 property int ExitNumber;
487 property double Distance;
489 property double Time;
491 property String^ FromName;
493 property String^ FromRef;
495 property FeatureInfo^ FromRouteInfo;
497 property String^ ToName;
499 property String^ ToRef;
501 property FeatureInfo^ ToRouteInfo;
503 property String^ Destination;
505 property String^ Instructions;
507 property int Index;
508
509 internal:
510 void Set(const CartoTypeCore::NavigatorTurn& aTurn);
511 };
512
514public enum class RouteProfileType
515 {
517 Car,
519 Walk,
520 Walking = Walk,
522 Cycle,
523 Bicycle = Cycle,
525 Hike,
526 Hiking = Hike,
528 Ski
529 };
530
532public enum class RouteProfileConstants
533 {
535 Motorway = 0,
537 MotorwayLink = 1,
539 TrunkRoad = 2,
541 TrunkLink = 3,
543 PrimaryRoad = 4,
545 PrimaryLink = 5,
547 SecondaryRoad = 6,
549 SecondaryLink = 7,
551 TertiaryRoad = 8,
555 ResidentialRoad = 10,
557 Track = 11,
559 ServiceRoad = 12,
561 PedestrianRoad = 13,
563 VehicularFerry = 14,
565 PassengerFerry = 15,
567 LivingStreet = 16,
569 Cycleway = 17,
571 Path = 18,
573 Footway = 19,
575 Bridleway = 20,
577 Steps = 21,
579 OtherRoad = 22,
581 UnpavedRoad = 23,
583 Railway = 24,
585 LightRail = 25,
587 Subway = 26,
589 AerialWay = 27,
591 SkiDownhill = 28,
593 SkiNordic = 29,
595 Waterway = 30,
597 UnknownRoute = 31,
599 RouteTypeCount = 64
600 };
601
607public ref class RouteProfile sealed
608 {
609 public:
610 RouteProfile();
614 Result ReadFromXmlFile(String^ aFileName);
616 Result ReadFromXmlString(String^ aString);
618 Result WriteAsXmlFile(String^ aFileName);
622 Result CopyWeights(int aSourceType,int aDestType);
624 static int CustomType(int aIndex) { assert(aIndex >= 0 && aIndex < 32); return aIndex + 32; }
625
627 property String^ Name;
628
633 property int VehicleType;
634
636 property double Weight;
637
639 property double AxleLoad;
640
642 property double DoubleAxleLoad;
643
645 property double TripleAxleLoad;
646
648 property double Height;
649
651 property double Width;
652
654 property double Length;
655
657 property bool HazMat;
658
660 property Array<double>^ Speed;
661
666 property Array<double>^ Bonus;
667
674 property Array<int>^ RestrictionOverride;
675
680 property int TurnTime;
681
686 property int UTurnTime;
687
695 property int CrossTrafficTurnTime;
696
700 property int TrafficLightTime;
701
706 property bool Shortest;
707
709 property bool ShortestByTime;
710
721 property double TollPenalty;
722
732 property Array<double>^ GradientSpeed;
733
735 property Array<double>^ GradientBonus;
736
741 property uint64_t GradientFlags;
742
743 internal:
744 void Set(const CartoTypeCore::RouteProfile& aProfile);
745 void Get(CartoTypeCore::RouteProfile& aProfile);
746 };
747
749public ref class NearestSegmentInfo sealed
750 {
751 public:
753
755 property int SegmentIndex;
757 property int LineIndex;
759 property double NearestPointX;
761 property double NearestPointY;
763 property double DistanceToRoute;
765 property double DistanceAlongRoute;
767 property double DistanceAlongSegment;
769 property double TimeAlongRoute;
771 property double TimeAlongSegment;
773 property double Heading;
774
775 internal:
776 void Set(const CartoTypeCore::NearestSegmentInfo& aInfo);
777 };
778
780public ref class RoutePoint sealed
781 {
782 public:
784 property double X;
786 property double Y;
788 property double Heading;
790 property bool HeadingKnown;
793 };
794
796using RoutePointList = IVector<RoutePoint^>;
797
804public ref class RouteCoordSet sealed
805 {
806 public:
808 {
810 RoutePointList = ref new Vector<RoutePoint^>;
811 }
812
817
818 internal:
819 CartoTypeCore::RouteCoordSet CreateRouteCoordSet();
820 };
821
823public ref class RouteSegment sealed: public Path
824 {
825 public:
829 property String^ Name { String^ get(); };
831 property String^ Ref { String^ get(); };
833 property String^ Destination { String^ get(); };
835 property double Distance { double get(); };
837 property double Time { double get(); };
839 property double TurnTime { double get(); }
841 property TurnType TurnType { CartoType::TurnType get(); }
843 property bool IsContinue { bool get(); }
847 property double TurnAngle { double get(); }
849 property int ExitNumber { int get(); };
851 property int Choices { int get(); }
853 property int Section { int get(); };
855 property String^ Instructions { String^ get(); };
856
858 virtual int ContourCount() { return 1; }
860 virtual int PointCount(int aContourIndex);
862 virtual PathPoint^ Point(int aContourIndex,int aPointIndex);
863
864 internal:
865 RouteSegment(std::shared_ptr<CartoTypeCore::RouteSegment> aSegment);
866
867 private:
868 std::shared_ptr<CartoTypeCore::RouteSegment> m_segment;
869 };
870
872public ref class Route sealed: public Path
873 {
874 internal:
875 Route(std::shared_ptr<CartoTypeCore::Route> aRoute);
876
877 public:
879 property Geometry^ Geometry { CartoType::Geometry^ get(); };
881 property RouteProfile^ Profile { RouteProfile^ get(); }
883 property double Distance { double get(); }
885 property double Time { double get(); }
887 property int RouteSegmentCount { int get(); }
891 property double TollRoadDistance { double get(); }
906 NearestSegmentInfo^ NearestSegment(double aX,double aY,int aSection,double aPreviousDistanceAlongRoute);
908 NearestSegmentInfo^ PointAtDistance(double aDistanceInMeters);
910 NearestSegmentInfo^ PointAtTime(double aTimeInSeconds);
912 virtual int ContourCount();
914 virtual int PointCount(int aContourIndex);
916 virtual PathPoint^ Point(int aContourIndex,int aPointIndex);
917
918 internal:
919 std::shared_ptr<CartoTypeCore::Route> GetRoute() { return m_route; }
920
921 private:
922 std::shared_ptr<CartoTypeCore::Route> m_route;
923 };
924
930public ref class Address sealed
931 {
932 public:
938 String^ ToString(bool aFull);
939
941 property String^ Building;
943 property String^ Feature;
945 property String^ Street;
947 property String^ SubLocalty;
949 property String^ Locality;
951 property String^ Island;
953 property String^ SubAdminArea;
955 property String^ AdminArea;
957 property String^ Country;
959 property String^ PostCode;
960
961 internal:
962 void Get(CartoTypeCore::Address& aAddress);
963 void Set(const CartoTypeCore::Address& aAddress);
964 };
965
967public enum class SideOfRoad
968 {
969 None,
970 Right,
971 Left,
972 Both
973 };
974
976public ref class NearestRoadInfo sealed
977 {
978 public:
980 property FeatureInfo^ FeatureInfo;
982 property String^ Name;
984 property String^ Ref;
986 property double NearestPointX;
988 property double NearestPointY;
990 property double Distance;
992 property double HeadingInDegrees;
994 property double HeadingVectorX;
996 property double HeadingVectorY;
1002 property SideOfRoad SideOfRoad;
1003
1004 internal:
1005 void Set(const CartoTypeCore::NearestRoadInfo& aInfo);
1006 };
1007
1009public enum class WritableMapType
1010 {
1012 Memory,
1014 SQLite
1015 };
1016
1018public enum class FileType
1019 {
1021 Png,
1023 Jpeg,
1025 Tiff,
1027 Ctm1,
1029 Ctms,
1031 Kml,
1033 Ctsql,
1037 Gpx
1038 };
1039
1044public ref class TrafficInfo sealed
1045 {
1046 public:
1048 {
1049 VehicleTypes = int(FeatureConstants::KRouteAccessVehicle);
1050 Speed = 255;
1051 }
1052
1054 property int VehicleTypes;
1056 property double Speed;
1057 };
1058
1060public enum class RoadOrientation
1061 {
1062 None,
1063 Forwards,
1064 Backwards,
1065 Both,
1066 };
1067
1069public enum class LRType
1070 {
1072 Line,
1080 Circle,
1082 Rectangle,
1084 Polygon,
1087 };
1088
1090public value struct UpdateTrafficResult
1091 {
1098 };
1099
1101public enum class LRFunctionalRoadClass
1102 {
1103 Main = 0,
1104 First = 1,
1105 Second = 2,
1106 Third = 3,
1107 Fourth = 4,
1108 Fifth = 5,
1109 Sixth = 6,
1110 Other = 7,
1111 Unknown = 255
1112 };
1113
1115public enum class LRFormOfWay
1116 {
1117 Undefined = 0,
1118 Motorway = 1,
1119 MultipleCarriageway = 2,
1120 SingleCarriageway = 3,
1121 Roundabout = 4,
1122 TrafficSquare = 5,
1123 SlipRoad = 6,
1124 Other = 7,
1125 Unknown = 255
1126 };
1127
1129public ref class LRPoint sealed
1130 {
1131 public:
1133
1135 property double Longitude;
1137 property double Latitude;
1139 property LRFunctionalRoadClass FRC;
1141 property LRFormOfWay FOW;
1143 property double Bearing;
1145 property bool BearingKnown;
1147 property double DistanceToNextPoint;
1150
1151 internal:
1152 LRPoint(const CartoTypeCore::LRPoint& aPoint);
1153 };
1154
1156using LRGeometry = Windows::Foundation::Collections::IVector<LRPoint^>;
1157
1159public ref class LocationRef sealed
1160 {
1161 public:
1166
1168 property LRType Type;
1170 property String^ Id;
1172 property LRGeometry^ Geometry;
1174 property double RadiusInMeters;
1176 property SideOfRoad SideOfRoad;
1179 };
1180
1182public ref class TrafficEvent sealed
1183 {
1184 public:
1185 TrafficEvent();
1187 static bool CreateFromDatex2Xml(String^ aSituationRecord,TrafficEvent^ aTrafficEvent);
1188
1190 property TrafficInfo^ TrafficInfo;
1192 property LocationRef^ LocationRef;
1193 };
1194
1196public enum class NoticeAnchor
1197 {
1199 TopLeft,
1201 TopRight,
1203 BottomLeft,
1207 Top,
1209 Right,
1211 Left,
1213 Bottom,
1215 Center
1216 };
1217
1230public ref class NoticePosition sealed
1231 {
1232 public:
1236 NoticePosition(NoticeAnchor aAnchor,double aWidth,String^ aWidthUnit);
1242 NoticePosition(NoticeAnchor aAnchor,double aWidth,String^ aWidthUnit,double aXInset,String^ aXInsetUnit,double aYInset,String^ aYInsetUnit);
1243
1244 internal:
1245 std::unique_ptr<CartoTypeCore::NoticePosition> m_position;
1246 };
1247
1248[Flags]
1250public enum class FontStyleFlag : unsigned int
1251 {
1253 Bold = 1,
1255 Italic = 2,
1257 Serif = 4,
1259 Cursive = 8,
1261 Fantasy = 16,
1263 Monospace = 32
1264 };
1265
1267public ref class MapObjectGroup sealed
1268 {
1269 public:
1271 property String^ Name;
1273 property MapObjectList^ MapObjectList;
1274 };
1275
1277using MapObjectGroupList = IVector<MapObjectGroup^>;
1278
1280public ref class PerspectiveParam sealed
1281 {
1282 public:
1284 {
1285 AutoPosition = true;
1286 AutoAzimuth = true;
1287 DeclinationDegrees = 30;
1288 FieldOfViewDegrees = 22.5;
1289 }
1290
1292 Result ReadFromXml(String^ aText);
1294 String^ ToXml();
1295
1297 property double PositionDegreesX;
1299 property double PositionDegreesY;
1301 property bool AutoPosition;
1303 property double HeightMeters;
1305 property double AzimuthDegrees;
1307 property bool AutoAzimuth;
1309 property double DeclinationDegrees;
1311 property double RotationDegrees;
1313 property double FieldOfViewDegrees;
1314 };
1315
1317public ref class ViewState sealed
1318 {
1319 public:
1320 ViewState() { WidthInPixels = 256; HeightInPixels = 256; }
1321
1323 Result ReadFromXml(String^ aText);
1325 String^ ToXml();
1326
1328 property int WidthInPixels;
1330 property int HeightInPixels;
1332 property double ViewCenterDegreesX;
1334 property double ViewCenterDegreesY;
1336 property double ScaleDenominator;
1338 property double RotationDegrees;
1340 property bool Perspective;
1343 };
1344
1346public ref class NavigatorParam sealed
1347 {
1348 public:
1350 {
1353 RouteTimeTolerance = 30;
1354 NavigationEnabled = true;
1355 }
1356
1358 property int MinimumFixDistance;
1360 property int RouteDistanceTolerance;
1362 property int RouteTimeTolerance;
1367 property bool NavigationEnabled;
1368 };
1369
1371public enum class FilePolicy
1372 {
1374 Default = 0,
1376 Cache = 1,
1378 SharedCache = 2,
1380 MemoryMap = 3,
1382 Simple = 4
1383 };
1384
1391public ref class FrameworkParam sealed
1392 {
1393 public:
1395 {
1396 ViewWidth = 256;
1397 ViewHeight = 256;
1399 }
1400
1402 property String^ MapFileName;
1404 property String^ StyleSheetFileName;
1406 property String^ StyleSheetText;
1408 property String^ FontFileName;
1410 property int ViewWidth;
1412 property int ViewHeight;
1414 property String^ Key;
1416 property FilePolicy MapFilePolicy;
1417 };
1418
1420public enum class ColorValue
1421 {
1423 Black = (int)0xFF000000,
1425 DarkGray = (int)0xFF555555,
1427 DarkRed = (int)0xFF000080,
1429 DarkGreen = (int)0xFF008000,
1431 DarkYellow = (int)0xFF008080,
1433 DarkBlue = (int)0xFF800000,
1435 DarkMagenta = (int)0xFF800080,
1437 DarkCyan = (int)0xFF808000,
1439 Red = (int)0xFF0000FF,
1441 Green = (int)0xFF00FF00,
1443 Yellow = (int)0xFF00FFFF,
1445 Blue = (int)0xFFFF0000,
1447 Magenta = (int)0xFFFF00FF,
1449 Cyan = (int)0xFFFFFF00,
1451 Gray = (int)0xFFAAAAAA,
1453 White = (int)0xFFFFFFFF,
1454
1456 TransparentBlack = 0x00000000
1457 };
1458
1466public value class Color sealed
1467 {
1468 public:
1471 };
1472
1474Color CreateColor(int aRed,int aGreen,int aBlue)
1475 {
1476 return Color { (0xFF << 24) | ((aBlue & 0xFF) << 16) | ((aGreen & 0xFF) << 8) | (aRed & 0xFF) };
1477 }
1478
1480Color CreateColor(int aRed,int aGreen,int aBlue,int aAlpha)
1481 {
1482 return Color { ((aAlpha & 0xFF) << 24) | ((aBlue & 0xFF) << 16) | ((aGreen & 0xFF) << 8) | (aRed & 0xFF) };
1483 }
1484
1489public ref class BlendStyle sealed
1490 {
1491 public:
1496 property String^ Styles;
1498 property Color MainColor;
1500 property Color BorderColor;
1502 property Color TextColor;
1504 property Color TextGlowColor;
1506 property Color IconColor;
1507 };
1508
1513using BlendStyleSet = IVector<BlendStyle^>;
1514
1516public ref class TimeAndDistanceMatrix sealed
1517 {
1518 public:
1520 property int FromCount { int get(); };
1522 property int ToCount { int get(); };
1524 int Time(int aFromIndex,int aToIndex);
1526 int Distance(int aFromIndex,int aToIndex);
1527
1528 internal:
1529 TimeAndDistanceMatrix(CartoTypeCore::TimeAndDistanceMatrix* aMatrix);
1530
1531 std::unique_ptr<CartoTypeCore::TimeAndDistanceMatrix> m_matrix;
1532 };
1533
1535public ref class MapObjectId sealed
1536 {
1537 public:
1539 property int64_t Id;
1540 };
1541
1543public ref class TileSet sealed
1544 {
1545 public:
1552 property String^ FileNameTemplate;
1554 property Rect^ TileRange;
1556 property int FileZoom;
1558 property int MinDisplayZoom;
1560 property int MaxDisplayZoom;
1561 };
1562
1564public ref class TileParam sealed
1565 {
1566 public:
1568 property IVector<TileSet^>^ TileSetList;
1569 };
1570
1578public ref class Framework sealed
1579 {
1580 public:
1582 Framework(String^ aMapFileName,String^ aStyleSheetFileName,String^ aFontFileName,
1583 int aViewWidth,int aViewHeight);
1585 Framework(String^ aMapFileName,String^ aStyleSheetFileName,String^ aFontFileName,
1586 int aViewWidth,int aViewHeight,String^ aKey);
1589
1591 Result License(String^ aKey);
1593 property String^ Licensee { String^ get(); };
1600 Result SetProviderParam(String^ aKey,String^ aValue);
1602 property String^ ExpiryDate { String^ get(); };
1604 property String^ AppBuildDate { String^ get(); };
1606 property String^ Copyright { String^ get(); };
1610 void SetCopyrightNotice(String^ aCopyright);
1614 Result SetLegend(NoticeAnchor aAnchor,double aWidth,String^ aUnit);
1616 property bool LegendEnabled { bool get(); void set(bool); }
1620 Result SetScaleBar(NoticeAnchor aAnchor,double aWidth,String^ aUnit);
1622 property bool ScaleBarEnabled { bool get(); void set(bool); }
1624 Result SetTurnInstructions(NoticePosition^ aPosition,Legend^ aLegend,bool aAbbreviate);
1626 Result SetTurnInstructions(NoticeAnchor aAnchor,double aWidth,String^ aWidthUnit,double aTextSize,String^ aTextSizeUnit,bool aAbbreviate);
1628 property bool TurnInstructionsEnabled { bool get(); void set(bool); }
1636 void SetTurnInstructionText(String^ aText);
1641 property String^ TurnInstructionText { String^ get(); };
1643 void DrawNoticesAutomatically(bool aEnable);
1645 property bool HasNotices { bool get(); }
1647 Result Configure(String^ aConfigFileName);
1649 Result LoadMap(String^ aMapFileName);
1651 Result LoadMap(String^ aMapFileName,String^ aEncryptionKey,FilePolicy aPolicy);
1663 Result CreateWritableMap(WritableMapType aType,String^ aFileName);
1670 Result SaveMap(int aHandle,String^ aFileName,FileType aFileType);
1677 Result ReadMap(int aHandle,String^ aFileName,FileType aFileType);
1683 Result WriteMapImage(String^ aFileName,FileType aFileType,bool aCompress);
1685 bool MapIsEmpty(int aHandle);
1687 property int MapCount { int get(); }
1689 int MapHandle(int aIndex);
1691 bool MapIsWritable(int aIndex);
1700 void EnableMapByHandle(int aHandle,bool aEnable);
1704 property int LastMapHandle { int get(); }
1706 property int MainMapHandle { int get(); }
1708 property int MemoryMapHandle { int get(); }
1710 Result LoadFont(String^ aFontFileName);
1716 Result SetStyleSheet(String^ aStyleSheetFileName,int aIndex);
1724 Result SetStyleSheetData(String^ aData,int aIndex);
1739 void AppendStyleSheet(String^ aStyleSheetFileName);
1744 void AppendStyleSheetData(String^ aData);
1754 void EnableLayer(String^ aLayerName,bool aEnable);
1756 bool LayerIsEnabled(String^ aLayerName);
1758 property IVector<String^>^ LayerNames { IVector<String^>^ get(); };
1760 Result Resize(int aViewWidth,int aViewHeight);
1762 property double ResolutionDpi { double get(); void set(double); };
1764 property double ScaleDenominator { double get(); void set(double); };
1766 property double ScaleDenominatorInView { double get(); void set(double); };
1768 double DistanceInMeters(double aX1,double aY1,double aX2,double aY2,CoordType aCoordType);
1773 double ScaleDenominatorFromZoomLevel(double aZoomLevel,int aImageSizeInPixels);
1778 double ZoomLevelFromScaleDenominator(double aScaleDenominator,int aImageSizeInPixels);
1780 void SetPerspective(bool aSet);
1782 property bool Perspective { bool get(); void set(bool); }
1786 property bool Draw3DBuildings { bool get(); void set(bool); }
1788 Result Zoom(double aZoomFactor);
1790 property bool AnimateTransitions { bool get(); void set(bool); }
1792 property double LabelFPS { double get(); void set(double); }
1794 property bool FixedLabels { bool get(); void set(bool); }
1796 property double LabelUpAngle { double get(); void set(double); }
1807 Result ZoomAt(double aZoomFactor,double aX,double aY,CoordType aCoordType);
1809 Result Rotate(double aAngle);
1811 Result RotateAt(double aAngle,double aX,double aY,CoordType aCoordType);
1813 property double Rotation { double get(); void set(double); }
1815 Result SetRotationAt(double aAngle,double aX,double aY,CoordType aCoordType);
1817 Result RotateAndZoom(double aAngle,double aZoomFactor,double aX,double aY,CoordType aCoordType);
1819 void Pan(int aDx,int aDy);
1821 Result Pan(double aFromX,double aFromY,CoordType aFromCoordType,
1822 double aToX,double aToY,CoordType aToCoordType);
1824 Result SetViewCenter(double aX,double aY,CoordType aCoordType);
1826 Result SetView(double aX1,double aY1,double aX2,double aY2,CoordType aCoordType,int aMarginInPixels,int aMinScaleDenominator);
1828 void SetView(MapObject^ aMapObject,int aMarginInPixels,int aMinScaleDenominator);
1830 Result SetViewToMapObjects(MapObjectList^ aObjectList,int aMarginInPixels,int aMinScaleDenominator);
1832 Result SetViewToGeometry(Geometry^ aGeometry,int aMarginInPixels,int aMinScaleDenominator);
1834 Result SetViewToRoute(int aMarginInPixels,int aMinScaleDenominator);
1847 Result SetViewLimits(double aMinScaleDenominator,double aMaxScaleDenominator,Geometry^ aPanArea);
1848
1850 Result GetView(Rect^ aView,CoordType aCoordType);
1852 Result GetMapExtent(Rect^ aExtent,CoordType aCoordType);
1854 property String^ ProjectionAsProj4Param { String^ get(); }
1856 property ViewState^ ViewState { CartoType::ViewState^ get(); void set(CartoType::ViewState^); }
1857
1867 Result InsertMapObject(int aMapHandle,String^ aLayerName,Geometry^ aGeometry,
1868 String^ aStringAttributes,FeatureInfo^ aFeatureInfo,MapObjectId^ aId,bool aReplace);
1877 Result InsertPointMapObject(int aMapHandle,String^ aLayerName,double aX,double aY,
1878 CoordType aCoordType,String^ aStringAttributes,FeatureInfo^ aFeatureInfo,MapObjectId^ aId,bool aReplace);
1889 Result InsertCircleMapObject(int aMapHandle,String^ aLayerName,
1890 double aCenterX,double aCenterY,CoordType aCenterCoordType,double aRadius,CoordType aRadiusCoordType,
1891 String^ aStringAttributes,FeatureInfo^ aFeatureInfo,MapObjectId^ aId,bool aReplace);
1902 Result InsertEllipseMapObject(int aMapHandle,String^ aLayerName,double aCenterX,double aCenterY,CoordType aCenterCoordType,
1903 double aRadiusX,double aRadiusY,CoordType aRadiusCoordType,double aRotationDegrees,String^ aStringAttributes,FeatureInfo^ aFeatureInfo,MapObjectId^ aId,bool aReplace);
1914 Result InsertEnvelopeMapObject(int aMapHandle,String^ aLayerName,Geometry^ aGeometry,
1915 double aRadius,CoordType aRadiusCoordType,
1916 String^ aStringAttributes,FeatureInfo^ aFeatureInfo,MapObjectId^ aId,bool aReplace);
1917
1937 Result InsertPushPin(double aX,double aY,CoordType aCoordType,String^ aStringAttributes,String^ aColor,int aIconCharacter,MapObjectId^ aId);
1938
1948 Result InsertCopyOfMapObject(int aMapHandle,String^ aLayerName,MapObject^ aObject,double aEnvelopeRadius,
1949 CoordType aRadiusCoordType,MapObjectId^ aId,bool aReplace);
1950
1955 Result DeleteMapObjects(int aMapHandle,int64_t aStartId,int64_t aEndId,String^ aCondition);
1960 MapObject^ LoadMapObject(int aMapHandle,int64_t aId);
1969 Result ReadGpx(int aMapHandle,String^ aFileName);
1978 Geometry^ Range(CartoType::RouteProfile^ aProfile,double aX,double aY,CoordType aCoordType,double aTimeOrDistance,bool aIsTime);
1987 TimeAndDistanceMatrix^ TimeAndDistanceMatrix(IVector<PointValue>^ aFrom,IVector<PointValue>^ aTo,CoordType aCoordType);
1998 bool MutuallyAccessible(IVector<PointValue>^ aPointArray,CoordType aCoordType,IVector<int>^ aGroupArray);
2006 double Area(Geometry^ aGeometry);
2013 double Length(Geometry^ aGeometry);
2021 double ContourArea(Geometry^ aGeometry,int aContourIndex);
2028 double ContourLength(Geometry^ aGeometry,int aContourIndex);
2030 Result ConvertCoords(Geometry^ aGeometry,CoordType aToCoordType);
2032 Result ConvertPoint(Point^ aPoint,CoordType aFromCoordType,CoordType aToCoordType);
2034 double PixelsToMeters(double aPixels);
2036 double MetersToPixels(double aMeters);
2038 property String^ DataSetName { String^ get(); };
2039
2047 Result EditNewLineObject(double aX,double aY);
2049 Result EditNewPolygonObject(double aX,double aY);
2051 Result EditMoveCurrentPoint(double aX,double aY);
2064 Result EditSelectNearestPoint(double aX,double aY,double aRadiusInMillimeters);
2072 Result EditInsertCurrentObject(String^ aLayer,MapObjectId^ aId,bool aReplace);
2074 Result EditSetCurrentObjectStringAttribute(String^ aKey,String^ aValue);
2089
2098 bool ClipBackgroundToMapBounds(bool aEnable);
2099
2116
2117 // adding and removing style sheet icons loaded from files
2131 Result LoadIcon(String^ aFileName,String^ aId,int aHotSpotX,int aHotSpotY,int aLabelX,int aLabelY);
2133 void UnloadIcon(String^ aId);
2134
2135 // finding map objects
2145 Result FindInDisplay(MapObjectList^ aObjectList,int aMaxObjectCount,double aX,double aY,double aRadius);
2147 Result FindAddress(MapObjectList^ aObjectList,int aMaxObjectCount,Address^ aAddress,bool aFuzzy);
2149 Result FindInLayer(MapObjectList^ aObjectList,int aMaxObjectCount,String^ aLayer,double aMinX,double aMinY,double aMaxX,double aMaxY,CoordType aCoordType);
2158 Result FindText(MapObjectList^ aObjectList,int aMaxObjectCount,String^ aText,StringMatchMethod aMatchMethod,String^ aLayers,String^ aAttrib);
2163 Result Find(MapObjectList^ aObjectList,FindParam^ aFindParam);
2170 Result FindGroups(MapObjectGroupList^ aObjectGroupList,FindParam^ aFindParam);
2172 Result FindNearby(MapObjectList^ aObjectList,FindNearbyParam^ aFindNearbyParam);
2173
2191 Result FindPointsInPath(MapObjectList^ aObjectList,Geometry^ aPath,FindParam^ aFindParam);
2202 double Height(double aX,double aY,CoordType aCoordType);
2204 IVector<HeightProfilePoint^>^ HeightProfile(Route^ aRoute,double aIntervalInMeters);
2205
2206 // style sheet variables
2208 void SetStyleSheetVariableToString(String^ aVariableName,String^ aValue);
2210 void SetStyleSheetVariableToInt(String^ aVariableName,int aValue);
2211
2212 // night mode and color blending
2214 property bool NightMode { bool get(); void set(bool); }
2216 property bool Monochrome { bool get(); void set(bool); }
2227 property Color NightModeColor { Color get(); void set(Color); }
2234
2235 // geocoding
2244 String^ GeoCodeSummary(MapObject^ aMapObject);
2251 Result GetAddress(Address^ aAddress,MapObject^ aMapObject);
2252
2257 Result GetAddressFast(Address^ aAddress,MapObject^ aMapObject);
2258
2267 String^ GeoCodeSummary(double aX,double aY,CoordType aCoordType);
2268
2275 Result GetAddress(Address^ aAddress,double aX,double aY,CoordType aCoordType);
2276
2277 // navigation
2288 property RouterType PreferredRouterType { RouterType get(); void set(RouterType); }
2302 property RouterType ActualRouterType { RouterType get(); }
2311 Result StartNavigation(IVector<double>^ aX,IVector<double>^ aY,CoordType aCoordType);
2313 Result StartNavigation(double aStartX,double aStartY,CoordType aStartCoordType,
2314 double aEndX,double aEndY,CoordType aEndCoordType);
2318 Route^ CreateRoute(RouteProfile^ aProfile,IVector<double>^ aX,IVector<double>^ aY,CoordType aCoordType);
2343 bool aStartFixed,bool aEndFixed,int aIterations);
2345 Route^ CreateBestRoute(RouteProfile^ aProfile,IVector<double>^ aX,IVector<double>^ aY,CoordType aCoordType,
2346 bool aStartFixed,bool aEndFixed,int aIterations);
2347
2348
2357 Route^ CreateRouteFromXml(RouteProfile^ aProfile,String^ aFilenameOrData);
2358
2378 property bool NavigationEnabled { bool get(); void set(bool); }
2418 property int BuiltInRouteProfileCount { int get(); }
2437 Result DisplayRoute(bool aEnabled);
2443 Result DisplayRouteChoices(IVector<CartoType::Route^>^ aRouteArray);
2455 Result ReadRouteFromXml(String^ aFileNameOrData);
2457 Result WriteRouteAsXml(CartoType::Route^ aRoute,String^ aFileName,FileType aFileType);
2504 Result Navigate(int aValidity,double aTime,double aLong,double aLat,double aSpeed,double aBearing,double aHeight);
2513 property Turn^ FirstTurn { Turn^ get(); }
2521 property Turn^ SecondTurn { Turn^ get(); }
2530 property Turn^ ContinuationTurn { Turn^ get(); }
2534 property String^ Framework::VoiceInstruction { String^ get(); }
2547 property int NavigationMinimumFixDistance { int get(); void set(int); }
2549 property int NavigationTimeOffRouteTolerance { int get(); void set(int); }
2551 property int NavigationDistanceOffRouteTolerance { int get(); void set(int); }
2571 int SetNearbyObjectWarning(int aId,String^ aLayer,String^ aCondition,double aMaxDistance,int aMaxObjectCount);
2587 int SetVehicleTypeWarning(double aMaxDistance,int aMaxObjectCount);
2595 property double DistanceToDestination { double get(); }
2597 property double EstimatedTimeToDestination { double get(); }
2607 Result FindNearestRoad(NearestRoadInfo^ aInfo,double aX,double aY,CoordType aCoordType,
2608 double aHeadingInDegrees,bool aDisplayPosition);
2618 Result DisplayPositionOnNearestRoad(double aLong,double aLat,double aHeadingInDegrees,NearestRoadInfo^ aInfo);
2624 void SetVehiclePosOffset(double aXOffset,double aYOffset);
2627
2633 Result SetFollowScale(double aMinScale,double aSlowScale,double aFastScale,double aMaxScale);
2634
2637
2643 property String^ Locale { String^ get(); void set(String^); }
2644
2646 property bool MetricUnits { bool get(); void set(bool); }
2647
2649 String^ DistanceToString(double aDistanceInMeters,bool aAbbreviate);
2650
2652 String^ TimeToString(double aTimeInSeconds);
2653
2660 String^ SetCase(String^ aString,LetterCase aCase);
2661
2683
2707 Result AddPolygonSpeedLimit(MapObjectId^ aId,Geometry^ aPolygon,double aSpeed,int aVehicleTypes);
2708
2736 Result AddLineSpeedLimit(MapObjectId^ aId,LRGeometry^ aLine,double aSpeed,int aVehicleTypes);
2737
2764 Result AddClosedLineSpeedLimit(MapObjectId^ aId,LRGeometry^ aLine,double aSpeed,int aVehicleTypes);
2765
2779
2792
2795
2799 property bool TrafficInfoEnabled { bool get(); void set(bool); }
2800
2803
2810
2813
2816
2818 bool Tracking();
2819
2821 property bool DisplayTrack { bool get(); void set(bool); }
2822
2827 property Geometry^ Track { Geometry^ get(); }
2828
2830 property double TrackLengthInMeters { double get(); }
2831
2833 Result WriteTrackAsXml(String^ aFileName);
2834
2836 property String^ TrackAsXmlString { String^ get(); }
2837
2839 property Result LastError { Result get(); }
2840
2841 internal:
2842 CartoTypeCore::Framework* GetFramework() { return m_framework.get(); }
2843
2844 private:
2845 std::unique_ptr<CartoTypeCore::Framework> m_framework;
2846 CartoTypeCore::Result m_error;
2847 };
2848
2850public enum class Align
2851 {
2853 Center,
2855 Standard,
2857 Reverse,
2859 Left,
2861 Right
2862 };
2863
2864[Flags]
2866public enum class LegendStyleFlag: unsigned int
2867 {
2869 Title = 1,
2871 ScaleInTitle = 2,
2873 MapObjects = 4,
2875 ScaleBar = 8,
2877 HeightProfile = 16,
2879 StandardStyle = 15,
2884 TurnStyle = 32,
2889 ScaleStyle = 64,
2891 EmptyStyle = 0
2892 };
2893
2907public ref class Legend sealed
2908 {
2909 public:
2911 Legend(Framework^ aFramework);
2912
2914 Legend(Framework^ aFramework,uint32_t aStyle);
2915
2917 void Clear();
2918
2922 void AddMapObjectLine(MapObjectType aType,String^ aLayer,FeatureInfo^ aFeatureInfo,String^ aStringAttrib,String^ aLabel);
2923
2925 void AddTextLine(String^ aText);
2926
2931
2935 void AddTurnLine(bool aAbbreviate);
2936
2939
2941 void SetMainStyleSheet(String^ aData);
2942
2950 void SetExtraStyleSheet(String^ aData);
2951
2954
2956 void SetBorder(Color aColor,double aStrokeWidth,double aRadius,String^ aUnit);
2957
2959 void SetMarginWidth(double aMarginWidth,String^ aUnit);
2960
2962 void SetMinLineHeight(double aLineHeight,String^ aUnit);
2963
2965 void SetLabelWrapWidth(double aWrapWidth,String^ aUnit);
2966
2968 void SetFontFamily(String^ aFontFamily);
2969
2971 void SetFontStyle(uint32_t aStyle);
2972
2974 void SetFontSize(double aFontSize,String^ aUnit);
2975
2977 void SetTextColor(Color aTextColor);
2978
2980 void SetDiagramColor(Color aDiagramColor);
2981
2983 void SetAlignment(Align aAlignment);
2984
2986 void SetPolygonRotation(double aDegrees);
2987
2992 void SetTurnInstruction(String^ aText);
2993
2999
3000 internal:
3001 CartoTypeCore::Legend* GetLegend() { return m_legend.get(); }
3002
3003 private:
3004 std::unique_ptr<CartoTypeCore::Legend> m_legend;
3005 };
3006
3018public ref class MapRenderer sealed
3019 {
3020 public:
3024 void Draw();
3025
3026 private:
3027 std::shared_ptr<class CartoTypeCore::CVectorTileServer> m_vector_tile_server;
3028 };
3029
3031public ref class Util sealed
3032 {
3033 public:
3035 static String^ Description();
3037 static String^ Version();
3039 static String^ Build();
3040
3042 static double GreatCircleDistanceInMeters(double aLong1,double aLat1,double aLong2,double aLat2);
3047 static double AzimuthInDegrees(double aLong1,double aLat1,double aLong2,double aLat2);
3049 static Point^ PointAtAzimuth(double aLong,double aLat,double aDir,double aDistanceInMeters);
3060 static String^ SetAttribute(String^ aString,String^ aKey,String^ aValue);
3062 static String^ ErrorString(Result aError);
3072 static String^ UKGridReferenceFromDegrees(PointValue aPointInDegrees,int aDigits);
3081 static PointValue PointInDegreesFromUKGridReference(String^ aGridReference);
3082 };
3083
3084}
A structured address. Any field may be empty or null, but at least one field should be non-empty for ...
Definition: CartoTypeWrapper.h:931
String^ Feature
The name of a feature or place of interest.
Definition: CartoTypeWrapper.h:943
String^ Country
The country.
Definition: CartoTypeWrapper.h:957
String^ PostCode
The postal code.
Definition: CartoTypeWrapper.h:959
String^ Building
The name or number of the building.
Definition: CartoTypeWrapper.h:941
String^ AdminArea
The administrative area: state, province, etc.
Definition: CartoTypeWrapper.h:955
String ^ ToString(bool aFull)
Returns the address as a string. If aFull is true, supplies the main administrative division (state,...
String^ Locality
The village, town or city.
Definition: CartoTypeWrapper.h:949
String^ Island
The island.
Definition: CartoTypeWrapper.h:951
String^ SubLocalty
The suburb, neighborhood, quarter or other subdivision of the locality.
Definition: CartoTypeWrapper.h:947
String^ SubAdminArea
The subsidiary administrative area: district, parish, etc.
Definition: CartoTypeWrapper.h:953
String^ Street
The street, road or other highway.
Definition: CartoTypeWrapper.h:945
A rule to modify a certain style or styles. The colors are blended with colors in a style,...
Definition: CartoTypeWrapper.h:1490
Color MainColor
The color to be blended with the colors in the style.
Definition: CartoTypeWrapper.h:1498
Color IconColor
If not null, the forced color for icons.
Definition: CartoTypeWrapper.h:1506
Color BorderColor
If not null, the color to be blended with border colors.
Definition: CartoTypeWrapper.h:1500
Color TextColor
If not null, the color to be blended with text colors.
Definition: CartoTypeWrapper.h:1502
String^ Styles
A space or comma separated list of wild-card style names. The special name '[legend]' is used for the...
Definition: CartoTypeWrapper.h:1496
Color TextGlowColor
If not null, the color to be blended with text glow colors.
Definition: CartoTypeWrapper.h:1504
A color>
Definition: CartoTypeWrapper.h:1467
int Value
The color value as a 32-bit integer.
Definition: CartoTypeWrapper.h:1470
Feature information for a map object, represented internally as a 32-bit value.
Definition: CartoTypeFeatureInfo.h:415
Parameters for finding nearby places.
Definition: CartoTypeWrapper.h:161
FeatureType Type
The type of place to search for. The value FeatureType::Invalid causes Text only to be used.
Definition: CartoTypeWrapper.h:166
String^ Text
The name, full or partial, of the place.
Definition: CartoTypeWrapper.h:168
Geometry^ Location
The location of interest.
Definition: CartoTypeWrapper.h:170
Parameters for the general Find function.
Definition: CartoTypeWrapper.h:175
Geometry^ Location
The current location. If it is non-empty, objects in or near this region are preferred.
Definition: CartoTypeWrapper.h:187
double TimeOut
The maximum time in seconds allowed for a find operation. Find operations are not guaranteed to retur...
Definition: CartoTypeWrapper.h:215
StringMatchMethod StringMatchMethod
The string matching method used for text searching; default = StringMatchExact.
Definition: CartoTypeWrapper.h:203
String^ Attributes
Attributes used in text searching (if Text is not empty). If Attributes is empty, all attributes are ...
Definition: CartoTypeWrapper.h:196
String^ Layers
A list of layer names separated by spaces or commas. If it is null or empty all layers are searched....
Definition: CartoTypeWrapper.h:189
Geometry^ Clip
The clip path; no clipping is done if Clip is null or empty.
Definition: CartoTypeWrapper.h:185
bool Merge
If Merge is true adjoining objects with the same name and attributes may be merged into a single obje...
Definition: CartoTypeWrapper.h:210
String^ Text
The text to search for. Unless null or empty, restricts the search to objects containing Text in one ...
Definition: CartoTypeWrapper.h:201
int MaxObjectCount
The maximum number of objects to return; default = INT32_MAX.
Definition: CartoTypeWrapper.h:183
String^ Condition
Unless null or empty, a style sheet condition (e.g., "@sub_type=2") which must be fulfilled by all th...
Definition: CartoTypeWrapper.h:208
The Framework class provides a high-level API for CartoType, through which map data can be loaded,...
Definition: CartoTypeWrapper.h:1579
void EnableMapByHandle(int aHandle, bool aEnable)
Enables or disables a map, selecting it by handle.
Result FindNearestRoad(NearestRoadInfo^ aInfo, double aX, double aY, CoordType aCoordType, double aHeadingInDegrees, bool aDisplayPosition)
Finds the nearest road to the point (aX,aY), returns information about it in aInfo,...
void AppendStyleSheet(String^ aStyleSheetFileName)
Loads an extra style sheet from a file. Extra style sheets are compiled after the main style sheet.
double MetersToPixels(double aMeters)
Converts a distance in map meters (projected meters) to pixels.
double TrackLengthInMeters
The length of the current track in meters.
Definition: CartoTypeWrapper.h:2830
Result AddTrafficEvent(MapObjectId^ aId, TrafficEvent^ aTrafficEvent)
Adds a traffic event, such as a speed restriction, road closure, reduction in the number of lanes,...
Result Rotate(double aAngle)
Rotates the map by an angle given in degrees.
Result AddPolygonSpeedLimit(MapObjectId^ aId, Geometry^ aPolygon, double aSpeed, int aVehicleTypes)
Adds a speed limit in kph, to be used when calculating routes, to all roads in a certain polygon.
Result FindPolygonsContainingPath(MapObjectList^ aObjectList, Geometry^ aPath, FindParam^ aFindParam)
Finds all polygon objects containing a certain path.
Result LastError
The result of calling the last non-void function that did not return a result code.
Definition: CartoTypeWrapper.h:2839
Geometry^ Track
Returns the current track as a geometry object with coordinates in degrees. Each segment of the track...
Definition: CartoTypeWrapper.h:2827
Result StartNavigation(double aStartX, double aStartY, CoordType aStartCoordType, double aEndX, double aEndY, CoordType aEndCoordType)
Starts navigating between the specified points. Call Navigate as needed to supply the vehicle positio...
Result SetFollowScale(double aMinScale, double aSlowScale, double aFastScale, double aMaxScale)
Sets the scale denominators to be used during navigation when moving at various speeds....
int NavigationDistanceOffRouteTolerance
Sets the maximum time off route in seconds before a new route is calculated.
Definition: CartoTypeWrapper.h:2551
Result CreateWritableMap(WritableMapType aType)
Creates a writable (editable) map of the specified type and loads it.
double ContourLength(Geometry^ aGeometry, int aContourIndex)
Returns the length of a geometry object on the surface of the earth in meters using the WGS84 ellipso...
bool TurnInstructionsEnabled
Enables or disables the drawing of a turn instruction notice that has been supplied using SetTurnInst...
Definition: CartoTypeWrapper.h:1628
NavigationState NavigationState
The current navigation state.
Definition: CartoTypeWrapper.h:2532
Result DeleteMapObjects(int aMapHandle, int64_t aStartId, int64_t aEndId, String^ aCondition)
Deletes map objects with IDs in the range aStartId...aEndId inclusive. If aCondition is non-null,...
Result SetLegend(NoticePosition^ aPosition, Legend^ aLegend)
Sets the legend. If no legend object is supplied (if aLegend is null), a standard legend is created.
MapObjectList ^ CopyNearbyObjects()
Returns copies of all the objects for which nearby object warnings exist.
String^ Copyright
Returns the copyright string stored in the main map database.
Definition: CartoTypeWrapper.h:1606
void SetCopyrightNotice()
Sets the copyright notice displayed at the bottom-right corner of the map to that of the main map dat...
bool DisplayTrack
Whether the track is displayed.
Definition: CartoTypeWrapper.h:2821
Result ConvertPoint(Point^ aPoint, CoordType aFromCoordType, CoordType aToCoordType)
Converts a point between display pixels, map coordinates and degrees longitude and latitude.
Result LoadMap(String^ aMapFileName)
Loads a map to be overlaid on the current map.
double LabelFPS
The number of frames per second used when drawing labels. Clamped to the range 1.....
Definition: CartoTypeWrapper.h:1792
Result SetViewToWholeMap()
Shows the whole map, zooming out as far as necessary.
int BuiltInRouteProfileCount
Returns the number of built-in routing profiles owned by the router.
Definition: CartoTypeWrapper.h:2418
CartoType::Route ^ Route()
Returns the current route.
void SetCopyrightNotice(String^ aCopyright)
Sets the copyright notice displayed at the bottom-right corner of the map.
String^ DataSetName
Returns the name of the data in the main map database.
Definition: CartoTypeWrapper.h:2038
Route ^ CreateRoute(RouteProfile^ aProfile, IVector< double >^ aX, IVector< double >^ aY, CoordType aCoordType)
A version of CreateRoute taking separate arrays of X and Y coords.
Geometry ^ Range(CartoType::RouteProfile^ aProfile, double aX, double aY, CoordType aCoordType, double aTimeOrDistance, bool aIsTime)
Returns the range: a polygon containing the area reachable within a certain time in seconds or distan...
Color NightModeColor
The night mode color, which should be a dark color (although this is not enforced).
Definition: CartoTypeWrapper.h:2227
Result InsertCopyOfMapObject(int aMapHandle, String^ aLayerName, MapObject^ aObject, double aEnvelopeRadius, CoordType aRadiusCoordType, MapObjectId^ aId, bool aReplace)
Inserts an object by copying an existing object.
Result SetViewToRoute(int aMarginInPixels, int aMinScaleDenominator)
Sets the view to show the current route, with a margin in pixels, and at a minimum scale.
Result GetAddressFast(Address^ aAddress, MapObject^ aMapObject)
Creates an address for a map object, using attributes of the object only. Returns ErrorNotFound if th...
void Pan(int aDx, int aDy)
Moves the map by aDx pixels horizontally and aDy pixels vertically.
String ^ WriteRouteAsXmlString(CartoType::Route^ aRoute, FileType aFileType)
Writes a route as XML string in the format selected by aFileType: CartoTypeRoute or Gpx.
bool DeleteNearbyObjectWarning(int aId)
Deletes the nearby object warning or vehicle type warning with an ID of aId and returns true if any s...
void SetStyleSheetVariableToInt(String^ aVariableName, int aValue)
Sets a style sheet variable to an integer value.
Result ConvertCoords(Geometry^ aGeometry, CoordType aToCoordType)
Converts the coordinates of a geometry object to another coordinate type.
String^ ExpiryDate
Returns the expiry date of the license in the form YYYY-MM-DD.
Definition: CartoTypeWrapper.h:1602
NavigatorParam^ NavigatorParam
Parameters affecting the working of the navigation system.
Definition: CartoTypeWrapper.h:2536
Result EditInsertCurrentObject(String^ aLayer, MapObjectId^ aId, bool aReplace)
Inserts the currently edited object into a chosen layer.
Result LoadFont(String^ aFontFileName)
Loads a font in addition to those already loaded.
void DrawNoticesAutomatically(bool aEnable)
Controls whether notices (the scale bar, legend and copyright notice) are drawn automatically.
String ^ GeoCodeSummary(double aX, double aY, CoordType aCoordType)
Returns a string summarizing a geocode for a geographical location.
int NavigationMinimumFixDistance
Sets the minimum distance between location fixes in metres that is taken as an actual move.
Definition: CartoTypeWrapper.h:2547
double ResolutionDpi
The display resolution used by CartoType in dots per inch. It has to be set correctly for map scaling...
Definition: CartoTypeWrapper.h:1762
Result SetRotationAt(double aAngle, double aX, double aY, CoordType aCoordType)
Sets the map's orientation to a rotation about a specified point by an absolute angle given in degree...
void SetView(MapObject^ aMapObject, int aMarginInPixels, int aMinScaleDenominator)
Sets the view to show a single map object, with a margin in pixels, and at a minimum scale.
Result ReloadStyleSheet(int aIndex)
Reloads a sheet from the file it was originally loaded from.
Result DisplayRouteChoices(IVector< CartoType::Route^>^ aRouteArray)
Displays a number of route choices, using the "route/choice" layer. Deletes the current route.
Framework(FrameworkParam^ aParam)
Creates a CartoType framework from parameters contained in a FrameworkParam object.
Result DeleteStyleSheet(int aIndex)
Deletes the style sheet with the specified index.
String ^ RouteInstructions(CartoType::Route^ aRoute)
Returns instructions for a route in the language of the current locale, or in English if that languag...
Result AddClosedLineSpeedLimit(MapObjectId^ aId, LRGeometry^ aLine, double aSpeed, int aVehicleTypes)
Adds a speed limit in kph, to be used when calculating routes, to a polygon which is the interior of ...
bool FixedLabels
True if labels are drawn, as far as possible, in fixed positions, and not moved when the map is panne...
Definition: CartoTypeWrapper.h:1794
double ContourArea(Geometry^ aGeometry, int aContourIndex)
Returns the area of a geometry object on the surface of the earth in square meters using the WGS84 el...
bool ScaleBarEnabled
Enables or disables the drawing of a scale bar that has been supplied using SetScale.
Definition: CartoTypeWrapper.h:1622
Result ReadMap(int aHandle, String^ aFileName, FileType aFileType)
Reads map data from aFileName in the format given by aFileType and merge it into the map identified b...
Result SetTurnInstructions(NoticePosition^ aPosition, Legend^ aLegend, bool aAbbreviate)
Creates turn instructions with a specified width and position in the display. If aLegend is supplied,...
double ZoomLevelFromScaleDenominator(double aScaleDenominator, int aImageSizeInPixels)
Calculates the Open Street Map zoom level (0 maps the length of the equator to aImageSizeInPixels pix...
bool AnimateTransitions
Whether transitions are smoothly animated in graphics-accelerated drawing.
Definition: CartoTypeWrapper.h:1790
String ^ SetCase(String^ aString, LetterCase aCase)
Sets the letter case of a string.
Result Find(MapObjectList^ aObjectList, FindParam^ aFindParam)
A general search function, allowing any combination of clip rectangle, choice of layers,...
String ^ TimeToString(double aTimeInSeconds)
Returns a time duration as a string containing locale-dependent words for hours, minutes and seconds.
bool TrafficInfoEnabled
Whether traffic information is used when routing.
Definition: CartoTypeWrapper.h:2799
Result FindAddress(MapObjectList^ aObjectList, int aMaxObjectCount, Address^ aAddress, bool aFuzzy)
Finds objects matching the specified address, which must have at least one field that is not empty.
Result EditNewPolygonObject(double aX, double aY)
Creates a new editable polygon object starting at the specified point in display coordinates.
double EstimatedTimeToDestination
Returns the estimated time to the destination in seconds. Return zero if there is no route.
Definition: CartoTypeWrapper.h:2597
Result UnloadMapByHandle(int aHandle)
Unloads a map, selecting it by handle. It is illegal to unload the main map database or the in-memory...
CartoType::RouteProfile ^ RouteProfile()
Returns the current route profile.
String^ TrackAsXmlString
Writes the current track to a string as XML in GPX format.
Definition: CartoTypeWrapper.h:2836
Turn^ FirstTurn
The first turn during navigation.
Definition: CartoTypeWrapper.h:2513
double Area(Geometry^ aGeometry)
Returns the area of a geometry object on the surface of the earth in square meters using the WGS84 el...
double Rotation
The angle of the map in degrees, measured clockwise from north-up.
Definition: CartoTypeWrapper.h:1813
Result InsertPointMapObject(int aMapHandle, String^ aLayerName, double aX, double aY, CoordType aCoordType, String^ aStringAttributes, FeatureInfo^ aFeatureInfo, MapObjectId^ aId, bool aReplace)
Inserts a point object into one of the writable maps, identifying it by its handle....
Result WriteMapImage(String^ aFileName, FileType aFileType, bool aCompress)
Writes a map image to a file of the specified type. Only the PNG file type is supported....
Result Zoom(double aZoomFactor)
Zooms the map by the specified factor: positive to zoom in, negative to zoom out.
void EndTracking()
Stops tracking (storing and displaying track points). Does not delete the current track.
double DistanceInMeters(double aX1, double aY1, double aX2, double aY2, CoordType aCoordType)
Returns the great-circle distance in meters, assuming a spherical earth, between two points.
void StartTracking()
Starts tracking (storing and displaying track points) and starts a new track segment....
Result GetMapExtent(Rect^ aExtent, CoordType aCoordType)
Gets the extent of the map in display pixels, map coordinates or degrees longitude and latitude.
Result InsertEnvelopeMapObject(int aMapHandle, String^ aLayerName, Geometry^ aGeometry, double aRadius, CoordType aRadiusCoordType, String^ aStringAttributes, FeatureInfo^ aFeatureInfo, MapObjectId^ aId, bool aReplace)
Inserts a map object that is an envelope around some geometry, at a radius of aRadius; it can also be...
Route ^ CreateBestRoute(RouteProfile^ aProfile, IVector< double >^ aX, IVector< double >^ aY, CoordType aCoordType, bool aStartFixed, bool aEndFixed, int aIterations)
A version of CreateBestRoute taking separate arrays of X and Y coords.
Result LoadMap(String^ aMapFileName, String^ aEncryptionKey, FilePolicy aPolicy)
Loads a map to be overlaid on the current map, specifying an optional encryption key and file policy.
BlendStyleSet^ BlendStyleSet
The blend style. To remove the current blend style, set it to null or empty.
Definition: CartoTypeWrapper.h:2233
Result InsertPushPin(double aX, double aY, CoordType aCoordType, String^ aStringAttributes, String^ aColor, int aIconCharacter, MapObjectId^ aId)
Inserts a pushpin: a point object belonging to the 'pushpin' layer. The pushpin is inserted into the ...
Result StartNavigation(RouteCoordSet^ aCoordSet)
Starts navigating through a series of at least two points. Call Navigate as needed to supply the vehi...
double EditGetCurrentObjectArea()
Returns the area of the currently edited object. For line objects returns 0. For polygon objects retu...
Result GetAddress(Address^ aAddress, MapObject^ aMapObject)
Creates an address for a map object.
Result EditDeleteCurrentObject()
Deletes the current editable object.
String^ Framework:: VoiceInstruction
When navigating, the voice instruction to be issued, if any, after a call to Navigate.
Definition: CartoTypeWrapper.h:2534
Result ReadRouteFromXml(String^ aFileNameOrData)
Reads a route from XML (a GPX file or a CartoType route file) and displays it.
Result SetViewToGeometry(Geometry^ aGeometry, int aMarginInPixels, int aMinScaleDenominator)
Sets the view to show a certain geometry, with a margin in pixels, and at a minimum scale.
bool Draw3DBuildings
Whether buildings are drawn in 3D where data is available.
Definition: CartoTypeWrapper.h:1786
Result GetView(Rect^ aView, CoordType aCoordType)
Gets the view rectangle in display pixels, map coordinates or degrees longitude and latitude.
Result EditDeleteCurrentPoint()
Deletes the editable object's current point unless that would result in a line object of fewer than 2...
double Length(Geometry^ aGeometry)
Returns the length of a geometry object on the surface of the earth in meters using the WGS84 ellipso...
Framework(String^ aMapFileName, String^ aStyleSheetFileName, String^ aFontFileName, int aViewWidth, int aViewHeight)
Creates a CartoType framework with a map, style sheet, font, and view size in pixels.
bool MapIsEmpty(int aHandle)
Return true if a map, identified by its handle, is known to be empty or does not exist.
Result UseRoute(CartoType::Route^ aRoute)
Uses an existing route and displays it. This function resets the navigation state.
double ScaleDenominatorFromZoomLevel(double aZoomLevel, int aImageSizeInPixels)
Calculates the scale denominator at the equator for a certain Open Street Map zoom level (0 maps the ...
int MemoryMapHandle
The handle of the in-memory map used for routing.
Definition: CartoTypeWrapper.h:1708
int NavigationTimeOffRouteTolerance
Sets the maximum distance from the route in metres before the vehicle is deemed off-route.
Definition: CartoTypeWrapper.h:2549
void SetPerspective(bool aSet)
Turns perspective mode on or off.
Result EditSelectNearestPoint(double aX, double aY, double aRadiusInMillimeters)
Selects an editable object by selecting the nearest point of any editable object within a given radiu...
Result EditSetCurrentObjectStringAttribute(String^ aKey, String^ aValue)
Sets a string attribute in the currently edited object. If aKey is empty, sets the label....
Result LoadMapsAutomatically(TileParam^ aParam)
Initiates automatic map loading, specifying a set of tile maps, which must be compatible with the bas...
RouterType ActualRouterType
The actual router type.
Definition: CartoTypeWrapper.h:2302
Result WriteTrackAsXml(String^ aFileName)
Writes the current track to a file as XML in GPX format.
Result FindInLayer(MapObjectList^ aObjectList, int aMaxObjectCount, String^ aLayer, double aMinX, double aMinY, double aMaxX, double aMaxY, CoordType aCoordType)
Finds all objects in a named layer or list of layers (space or comma separated), within specified bou...
Result DisplayPositionOnNearestRoad(double aLong, double aLat, double aHeadingInDegrees, NearestRoadInfo^ aInfo)
Moves the route position object and the route vector object to the nearest point on a road.
Result SetViewLimits(double aMinScaleDenominator, double aMaxScaleDenominator, Geometry^ aPanArea)
Sets the limits to zooming and panning.
bool LegendEnabled
Enables or disables the drawing of a legend that has been supplied using SetLegend.
Definition: CartoTypeWrapper.h:1616
Result ReverseRoute()
Reverses the order of the current route point, recreates the route, and displays it on the map....
LocationMatchParam^ LocationMatchParam
The current location match parameters.
Definition: CartoTypeWrapper.h:2545
void SetVehiclePosOffset(double aXOffset, double aYOffset)
Sets the vehicle position when navigating as an offset from the center of the display,...
Result FindGroups(MapObjectGroupList^ aObjectGroupList, FindParam^ aFindParam)
A search function to make interactive searching easier. It returns map objects grouped by names which...
double LabelUpAngle
The up direction for labels as an angle in degrees measured clockwise from straight up.
Definition: CartoTypeWrapper.h:1796
void DeleteTrack()
Deletes the current track. Does not affect whether tracking is on or off.
Result LoadNavigationData()
Loads navigation data for the current map.
Result FindText(MapObjectList^ aObjectList, int aMaxObjectCount, String^ aText, StringMatchMethod aMatchMethod, String^ aLayers, String^ aAttrib)
Finds objects with attributes matching aText.
Result GetNavigationPosition(Point^ aPos, CoordType aCoordType)
Returns the current position used by the navigation system. This may be an extrapolated position.
Result RotateAndZoom(double aAngle, double aZoomFactor, double aX, double aY, CoordType aCoordType)
Simultaneously rotates and zooms at a certain point given in aCoordType. The rotation is in degrees.
Result EditSetWritableMap(int aMapHandle)
Sets the map used to store editable objects. Does not affect objects already created....
Route ^ CreateBestRoute(RouteProfile^ aProfile, RouteCoordSet^ aCoordSet, bool aStartFixed, bool aEndFixed, int aIterations)
Creates an optimized route to visit a series of waypoints in any order.
Result SetProviderParam(String^ aKey, String^ aValue)
Sets a parameter to be used by a data provider. For example, to set the 'permanent' parameter used by...
String ^ DistanceToString(double aDistanceInMeters, bool aAbbreviate)
Returns a distance as a string containing locale-dependent words for kilometres, metres,...
bool LayerIsEnabled(String^ aLayerName)
Returns the enabled status of a named layer. When a layer is disabled it is not drawn but is still se...
void SetStyleSheetVariableToString(String^ aVariableName, String^ aValue)
Sets a style sheet variable to a string value.
void ClearTrafficInfo()
Deletes all speed restrictions, forbidden areas and other traffic information.
Result EditMoveCurrentPoint(double aX, double aY)
Moves the editable object's current point if any to the specified point in display coordinates.
Result CreateWritableMap(WritableMapType aType, String^ aFileName)
Creates a writable (editable) map of the specified type, supplying a filename, and loads it.
int SetNearbyObjectWarning(int aId, String^ aLayer, String^ aCondition, double aMaxDistance, int aMaxObjectCount)
Adds or replaces a nearby object warning.
String^ TurnInstructionText
Returns the instruction to be displayed for the current turn. This function returns an empty string i...
Definition: CartoTypeWrapper.h:1641
CartoType::RouteProfile ^ BuiltInRouteProfile(int aIndex)
Returns a built-in routing profile selected by its index, or null if the index is out of range.
Result SetRouteProfile(CartoType::RouteProfile^ aProfile)
Sets the routing profile.
Result Resize(int aViewWidth, int aViewHeight)
Sets the map to a new size in pixels.
Result AddLineSpeedLimit(MapObjectId^ aId, LRGeometry^ aLine, double aSpeed, int aVehicleTypes)
Adds a speed limit in kph, to be used when calculating routes, to a route defined by a series of poin...
Result EditAddCurrentPoint()
Adds a new point to the editable object by copying the current point.
bool ClipBackgroundToMapBounds(bool aEnable)
Enables or disables clipping the map background to the map bounds.
void EnableLayer(String^ aLayerName, bool aEnable)
Enables or disables a named map layer.
Result LoadIcon(String^ aFileName, String^ aId, int aHotSpotX, int aHotSpotY, int aLabelX, int aLabelY)
Loads an icon from a file. It will be used whenever the ID aId is referenced in the style sheet,...
bool ClearNearbyObjectWarnings()
Clears all nearby object warnings, and the objects themselves, and returns true if any objects were d...
Result DeleteRoute()
Deletes the route.
void EndNavigation()
Stops navigating. Current routes remain in existence. Navigation can be resumed using startNavigation...
UpdateTrafficResult UpdateTrafficFromDatex2(String^ aXmlText)
Updates dynamic traffic information from DATEX II XML data, which must contain binary OpenLR strings.
void UnloadIcon(String^ aId)
Unloads an icon previously loaded using LoadIcon.
Result DeleteTrafficEvent(int64_t aId)
Deletes a traffic event: a speed limit, forbidden area, or other information, referring to it by the ...
MapMetaData ^ MapMetaData(int aIndex)
Returns the metadata for a map, identified by its index, if available. Returns null if no metadata is...
double EditGetCurrentObjectLength()
Returns the length of the currently edited object. For line objects the length in meters....
Result SetViewCenter(double aX, double aY, CoordType aCoordType)
Sets the center of the view to a point given in display pixels, map coordinates or degrees longitude ...
Result EditSetCurrentObjectFeatureInfo(FeatureInfo^ aFeatureInfo)
Sets the feature info of the currently edited object.
Result SaveMap(int aHandle, String^ aFileName, FileType aFileType)
Saves a map identified by its handle by writing it the specified format. Only writable map databases ...
Result Configure(String^ aConfigFileName)
Configures the CartoType framework by reading an XML configuration file.
Turn^ ContinuationTurn
The continuation turn during navigation.
Definition: CartoTypeWrapper.h:2530
Result SetRouteProfileType(CartoType::RouteProfileType aProfileType)
Sets the route profile to one of the standard types.
Result SetView(double aX1, double aY1, double aX2, double aY2, CoordType aCoordType, int aMarginInPixels, int aMinScaleDenominator)
Sets the view to show a certain rectangle, with a margin in pixels, and at a minimum scale.
bool Perspective
Perspective mode: on or off.
Definition: CartoTypeWrapper.h:1782
Result AddForbiddenArea(MapObjectId^ aId, Geometry^ aPolygon)
Marks a certain polygon as forbidden for routing.
bool Monochrome
In monochrome mode the map is drawn using greys.
Definition: CartoTypeWrapper.h:2216
bool MetricUnits
Whether metric or non-metric units are used for distances.
Definition: CartoTypeWrapper.h:2646
int SetTileOverSizeZoomLevels(int aLevels)
Sets the number of zoom levels by which to zoom out when creating a tile bitmap returned by TileBitma...
Route ^ CreateRouteFromXml(RouteProfile^ aProfile, String^ aFilenameOrData)
Creates a route by reading it from XML data in GPX or CartoType route format.
int BuiltInRouteProfileIndex()
Returns the current built-in route profile index. Returns zero if there are no built-in route profile...
String^ AppBuildDate
Returns the date on which the application was built in the form YYYY-MM-DD.
Definition: CartoTypeWrapper.h:1604
Result InsertCircleMapObject(int aMapHandle, String^ aLayerName, double aCenterX, double aCenterY, CoordType aCenterCoordType, double aRadius, CoordType aRadiusCoordType, String^ aStringAttributes, FeatureInfo^ aFeatureInfo, MapObjectId^ aId, bool aReplace)
Inserts a circle map object into one of the maps, identifying the map by its handle....
Result DisplayRoute(bool aEnabled)
If enabled, displays the current route. If not, removes the current route from the display.
double DistanceToDestination
Returns the distance to the destination in metres. Return zero if there is no route.
Definition: CartoTypeWrapper.h:2595
int MapHandle(int aIndex)
Returns the handle of one of the currently loaded maps. Returns 0 if aIndex is out of range.
Result RotateAt(double aAngle, double aX, double aY, CoordType aCoordType)
Rotates the map about a specified point by an angle given in degrees.
Result License(String^ aKey)
Licenses the CartoType framework by supplying a key.
bool MutuallyAccessible(IVector< PointValue >^ aPointArray, CoordType aCoordType, IVector< int >^ aGroupArray)
Determines the mutual accessibility of a set of points for routing purposes, using the current routin...
Result SetViewToMapObjects(MapObjectList^ aObjectList, int aMarginInPixels, int aMinScaleDenominator)
Sets the view to show a group of map objects, with a margin in pixels, and at a minimum scale.
bool NavigationEnabled
Whether navigation is enabled. When navigation is disabled, the follow modes work but no navigation i...
Definition: CartoTypeWrapper.h:2378
int MainMapHandle
The handle of the main map.
Definition: CartoTypeWrapper.h:1706
bool MapIsWritable(int aIndex)
Returns true if the indexed map is writable.Returns false if aIndex is out of range.
Result InsertEllipseMapObject(int aMapHandle, String^ aLayerName, double aCenterX, double aCenterY, CoordType aCenterCoordType, double aRadiusX, double aRadiusY, CoordType aRadiusCoordType, double aRotationDegrees, String^ aStringAttributes, FeatureInfo^ aFeatureInfo, MapObjectId^ aId, bool aReplace)
Inserts an ellipse map object into one of the maps, identifying the map by its handle....
void AppendStyleSheetData(String^ aData)
Loads an extra style sheet from data in memory. Extra style sheets are compiled after the main style ...
double ScaleDenominatorInView
The scale denominator for the current view, adjusting for any projection distortion: for example,...
Definition: CartoTypeWrapper.h:1766
Result FindInDisplay(MapObjectList^ aObjectList, int aMaxObjectCount, double aX, double aY, double aRadius)
Finds all objects within aRadius of the point aX,aY on the display.
Result Navigate(int aValidity, double aTime, double aLong, double aLat, double aSpeed, double aBearing, double aHeight)
Updates the vehicle position and, if navigating, updates the navigation state.
Result SetBuiltInRouteProfile(int aIndex)
Selects a built-in routing profile by its index.
MapObject ^ LoadMapObject(int aMapHandle, int64_t aId)
Loads a map object, identifying it by its map handle and ID. Returns null if the object does not exis...
double Height(double aX, double aY, CoordType aCoordType)
Returns the height in metres at a single point, or -32768 if it is unavailable.
String ^ GeoCodeSummary(MapObject^ aMapObject)
Returns a string summarizing a geocode for a map object.
Result WriteRouteAsXml(CartoType::Route^ aRoute, String^ aFileName, FileType aFileType)
Writes a route as XML in the format selected by aFileType: CartoTypeRoute or Gpx.
Result StartNavigation(IVector< double >^ aX, IVector< double >^ aY, CoordType aCoordType)
A version of StartNavigation taking separate arrays of X and Y coords.
Turn^ SecondTurn
The second turn during navigation.
Definition: CartoTypeWrapper.h:2521
Result FindPointsInPath(MapObjectList^ aObjectList, Geometry^ aPath, FindParam^ aFindParam)
Finds all point objects contained in a certain path.
Result SetStyleSheet(String^ aStyleSheetFileName, int aIndex)
Sets a style sheet by loading it from a file. The index aIndex determines which style sheet to replac...
String^ Licensee
The name of the licensee. It is "no licensee: for evaluation only" if there is no licensee.
Definition: CartoTypeWrapper.h:1593
Route ^ CreateRoute(RouteProfile^ aProfile, RouteCoordSet^ aCoordSet)
Creates a route without starting navigation, supplying a route profile and waypoints.
bool HasNotices
Returns true if any notices such as a scale bar, legend or copyright notice exist.
Definition: CartoTypeWrapper.h:1645
RouterType PreferredRouterType
The preferred type of router to be used for calculating routes.
Definition: CartoTypeWrapper.h:2288
bool NightMode
In night mode the map is shaded dark blue and roads are made brighter than other features.
Definition: CartoTypeWrapper.h:2214
void CancelAutomaticMapLoading()
Cancels automatic map loading.
void SetTurnInstructionText(String^ aText)
Sets the instruction to be displayed for the current turn, overriding automatically generated instruc...
Result ReadGpx(int aMapHandle, String^ aFileName)
Reads route and track objects from a GPX file and inserts them into the map identified by aMapHandle....
Result InsertMapObject(int aMapHandle, String^ aLayerName, Geometry^ aGeometry, String^ aStringAttributes, FeatureInfo^ aFeatureInfo, MapObjectId^ aId, bool aReplace)
Inserts a map object into one of the writable maps. The type of the map object (point,...
String^ ProjectionAsProj4Param
Returns the current map projection as a proj.4 parameter string if possible. If not returns the empty...
Definition: CartoTypeWrapper.h:1854
void EnableAllMaps()
Enables all currently loaded maps.
IVector< HeightProfilePoint^> ^ HeightProfile(Route^ aRoute, double aIntervalInMeters)
Creates a height profile for a route. If aIntervalInMeters is not positive, an interval of 100 meters...
int LastMapHandle
The handle of the map most recently loaded.
Definition: CartoTypeWrapper.h:1704
Result StartNavigationDeferred(RouteCoordSet^ aCoordSet)
Starts navigating through a series of at least two points. Call Navigate as needed to supply the vehi...
Result FindNearby(MapObjectList^ aObjectList, FindNearbyParam^ aFindNearbyParam)
Finds nearby objects, allowing a choice of point of interest type, name and location.
int SetVehicleTypeWarning(double aMaxDistance, int aMaxObjectCount)
Adds a vehicle type warning and returns its ID. Road sections illegal for the current vehicle weight,...
Result ZoomAt(double aZoomFactor, double aX, double aY, CoordType aCoordType)
Zooms in by a specified zoom factor, or zooms out if the zoom factor is less than 1,...
double ScaleDenominator
The current scale denominator. Use the denominator 50000 for a scale of 1:50,000.
Definition: CartoTypeWrapper.h:1764
Framework(String^ aMapFileName, String^ aStyleSheetFileName, String^ aFontFileName, int aViewWidth, int aViewHeight, String^ aKey)
Creates a CartoType framework with a map, style sheet, font, view size in pixels, and API key or encr...
Result SetScaleBar(NoticePosition^ aPosition, Legend^ aLegend)
Creates a scale bar with a specified width and position in the display. If aLegend is supplied,...
double PixelsToMeters(double aPixels)
Converts a distance in pixels to map meters (projected meters).
TimeAndDistanceMatrix ^ TimeAndDistanceMatrix(IVector< PointValue >^ aFrom, IVector< PointValue >^ aTo, CoordType aCoordType)
Returns a vector of route times in seconds and distances in metres from aFrom to all points in aTo.
Result SetTurnInstructions(NoticeAnchor aAnchor, double aWidth, String^ aWidthUnit, double aTextSize, String^ aTextSizeUnit, bool aAbbreviate)
Creates standard turn instructions with a specified position and width. Optionally (if aTextSize is g...
IVector< String^>^ LayerNames
Returns the names of all the layers in the map data.
Definition: CartoTypeWrapper.h:1758
Result SetStyleSheetData(String^ aData, int aIndex)
Sets a style sheet by loading it from data in memory.
bool Tracking()
Returns true if tracking (storing and displaying track points) is on.
String^ Locale
The locale used when getting the names of map objects when routing, geocoding, etc....
Definition: CartoTypeWrapper.h:2643
int MapCount
Returns the number of maps currently loaded, including the main map and the in-memory map.
Definition: CartoTypeWrapper.h:1687
Result EditNewLineObject(double aX, double aY)
Creates a new editable line object starting at the specified point in display coordinates.
Result Pan(double aFromX, double aFromY, CoordType aFromCoordType, double aToX, double aToY, CoordType aToCoordType)
Pans (slides) the map so that the position aFrom moves to aTo.
Parameters for creating a Framework object when more detailed control is needed. For example,...
Definition: CartoTypeWrapper.h:1392
String^ StyleSheetFileName
The style sheet. If this string is null or empty, the style sheet must be supplied in m_style_sheet_t...
Definition: CartoTypeWrapper.h:1404
String^ MapFileName
The map. Must not be null or empty.
Definition: CartoTypeWrapper.h:1402
String^ FontFileName
The font. If it is null or empty a small default font is used.
Definition: CartoTypeWrapper.h:1408
FilePolicy MapFilePolicy
The policy for loading and caching map files.
Definition: CartoTypeWrapper.h:1416
int ViewHeight
The height of the map in pixels. Must be greater than zero.
Definition: CartoTypeWrapper.h:1412
String^ StyleSheetText
The style sheet text. Used if m_style_sheet_filename is null or empty.
Definition: CartoTypeWrapper.h:1406
int ViewWidth
The width of the map in pixels. Must be greater than zero.
Definition: CartoTypeWrapper.h:1410
String^ Key
If non-null, and not empty, an API key or encryption key to be used when loading the map.
Definition: CartoTypeWrapper.h:1414
A geometry class for creating map objects and specifying view areas. There are also functions for the...
Definition: CartoTypeGeometry.h:225
A point used as part of an OpenLR location reference.
Definition: CartoTypeWrapper.h:1130
bool BearingKnown
True if the bearing is known.
Definition: CartoTypeWrapper.h:1145
double Latitude
Latitude in degrees.
Definition: CartoTypeWrapper.h:1137
LRFunctionalRoadClass LowestRoadClassToNextPoint
Expected lowest road class on route to next point for route validation.
Definition: CartoTypeWrapper.h:1149
double Longitude
Longitude in degrees.
Definition: CartoTypeWrapper.h:1135
LRFunctionalRoadClass FRC
Road class at position.
Definition: CartoTypeWrapper.h:1139
double DistanceToNextPoint
Expected distance in meters to the next point for route validation; a value zero or less means 'unkno...
Definition: CartoTypeWrapper.h:1147
double Bearing
Forward bearing in degrees (0...360, clockwise, 0 = north) at position.
Definition: CartoTypeWrapper.h:1143
LRFormOfWay FOW
Form of way at position.
Definition: CartoTypeWrapper.h:1141
The Legend class is used to specify legends, scales, copyright notices and turn instructions.
Definition: CartoTypeWrapper.h:2908
void SetDiagramColor(Color aDiagramColor)
Sets the color used for scale bars and height profiles.
void AddTextLine(String^ aText)
Adds a line of text, using the current font family, font size, text color and minimum line height.
void SetBorder(Color aColor, double aStrokeWidth, double aRadius, String^ aUnit)
Sets the border color and corner radius for the whole legend. Transparent border colors are allowed.
void AddTurnLine(bool aAbbreviate)
Adds a turn line, using the current font family, font size, alignment, text color and minimum line he...
void Clear()
Deletes all legend lines (map objects, text lines and scale bars).
void SetExtraStyleSheet(String^ aData)
Sets the extra style sheet.
String ^ TurnInstruction()
Returns the instruction to be displayed for the current turn, overriding automatically generated inst...
void SetMainStyleSheet(String^ aData)
Sets the main style sheet, replacing the style sheet copied from the Framework parameter to the Legen...
Legend(Framework^ aFramework, uint32_t aStyle)
Creates a Legend object with the same fonts and style sheet as aFramework, specifying a style made fr...
void SetFontSize(double aFontSize, String^ aUnit)
Sets the font size for subsequently added lines.
void AddHeightProfileLine()
Adds a height profile line, using the current font family, font size, text color, and minimum line he...
void SetFontFamily(String^ aFontFamily)
Sets the font family for subsequently added lines.
void SetLabelWrapWidth(double aWrapWidth, String^ aUnit)
Sets the label wrap width for subsequently added lines. Values of zero or less prevent wrapping....
Legend(Framework^ aFramework)
Creates a Legend object with the same fonts and style sheet as aFramework.
void SetMarginWidth(double aMarginWidth, String^ aUnit)
Sets the margin width for the whole legend.
void SetMinLineHeight(double aLineHeight, String^ aUnit)
Sets the minimum line height for subsequently added lines.
void AddMapObjectLine(MapObjectType aType, String^ aLayer, FeatureInfo^ aFeatureInfo, String^ aStringAttrib, String^ aLabel)
Adds a line containing a map object, with an optional label to the left of it.
void AddScaleLine()
Adds a scale bar line, using the current font family, font size, alignment, text color and minimum li...
void SetFontStyle(uint32_t aStyle)
Sets the font style for subsequently added lines. The style is made from FontStyleFlag values.
void SetPolygonRotation(double aDegrees)
Sets the amount in degrees by which rectangles drawn for polygon legend lines are rotated,...
void SetTextColor(Color aTextColor)
Sets the text color for subsequently added lines.
void SetBackgroundColor(Color aColor)
Sets the background color. Transparent colors are allowed.
void SetAlignment(Align aAlignment)
Sets the alignment for labels and scale bars.
void SetTurnInstruction(String^ aText)
Sets the instruction to be displayed for the current turn, overriding automatically generated instruc...
Parameters used when matching a road or other feature to a location.
Definition: CartoTypeWrapper.h:372
double MaxRoadDistanceInMeters
The expected maximum distance of a road from the current location. It is clamped to the range 5 ....
Definition: CartoTypeWrapper.h:391
double LocationAccuracyInMeters
The accuracy of a location fix given as a range error with 95% probability. It is clamped to the rang...
Definition: CartoTypeWrapper.h:379
double HeadingAccuracyInDegrees
The accuracy of a heading or course given as an angular error in degrees with 95% probability....
Definition: CartoTypeWrapper.h:385
Parameters used for a location reference in traffic information.
Definition: CartoTypeWrapper.h:1160
double RadiusInMeters
The radius, if this is a circle.
Definition: CartoTypeWrapper.h:1174
String^ Id
The arbitrary ID of the location reference; may be null.
Definition: CartoTypeWrapper.h:1170
LRGeometry^ Geometry
The point or points.
Definition: CartoTypeWrapper.h:1172
RoadOrientation RoadOrientation
The road orientation, if relevant.
Definition: CartoTypeWrapper.h:1178
SideOfRoad SideOfRoad
The side of the road, if relevant.
Definition: CartoTypeWrapper.h:1176
LRType Type
The type of this location reference.
Definition: CartoTypeWrapper.h:1168
LocationRef()
Creates a location reference with default values.
Metadata describing a CTM1 map file.
Definition: CartoTypeMetaData.h:94
A group of map objects with the same name, as used in a list of found objects.
Definition: CartoTypeWrapper.h:1268
MapObjectList^ MapObjectList
The list of map objects.
Definition: CartoTypeWrapper.h:1273
String^ Name
The name shared by all the map objects.
Definition: CartoTypeWrapper.h:1271
A map object: a point, linear object, polygon object, or array (texture).
Definition: CartoTypeWrapper.h:236
String ^ StringAttribute(String^ aName)
Returns a string attribute. If aName is empty this function returns the same value as the Label prope...
int64_t Id
The ID of the object.
Definition: CartoTypeWrapper.h:247
virtual int PointCount(int aContourIndex)
The number of points in a contour.
double Area
The area of the map object in square meters. Returns 0 if it is a point or a line.
Definition: CartoTypeWrapper.h:253
MapObjectType Type
The type of the object.
Definition: CartoTypeWrapper.h:249
MapObjectMatch ^ Match(String^ aText, StringMatchMethod aMatchMethod, String^ aAttributes, bool aPhrase)
Finds the first string attribute matching aText, using aMatchMethod, and returns information about it...
Rect^ BoundsInDegrees
Returns the bounding box of a map object in degrees.
Definition: CartoTypeWrapper.h:273
Rect^ Bounds
Returns the axis-aligned bounding box of a map object, in map coordinates.
Definition: CartoTypeWrapper.h:277
Point^ Center
Returns the center of a map object in map coordinates.
Definition: CartoTypeWrapper.h:262
double LengthOrPerimeter
The length or perimeter of the map object in meters. Returns 0 if it is a point.
Definition: CartoTypeWrapper.h:255
virtual PathPoint ^ Point(int aContourIndex, int aPointIndex)
Returns a point, specifying it by contour index and point index, and places it in aPoint.
virtual int ContourCount()
The number of contours in the path.
IVector< String^> ^ StringAttributes()
Returns all the string attributes as key-value pairs; an empty key refers to the label attribute.
String^ Label
The label or name of the object.
Definition: CartoTypeWrapper.h:239
Point^ CenterInDegrees
Returns the center of a map object in degrees.
Definition: CartoTypeWrapper.h:271
String^ LayerName
The name of the object's layer.
Definition: CartoTypeWrapper.h:251
Geometry^ GeometryInDegrees
Returns the geometry of a map object in degrees.
Definition: CartoTypeWrapper.h:275
A class to hold a map object ID which can both be passed into and returned from a function to insert ...
Definition: CartoTypeWrapper.h:1536
int64_t Id
The map object ID.
Definition: CartoTypeWrapper.h:1539
Information returned by MapObject::Match.
Definition: CartoTypeWrapper.h:220
int End
The end position of the matched text within the value.
Definition: CartoTypeWrapper.h:231
int Start
The start position of the matched text within the value.
Definition: CartoTypeWrapper.h:229
String^ Value
The value of the attribute in which the matched text was found.
Definition: CartoTypeWrapper.h:227
String^ Key
The name of the attribute in which the matched text was found.
Definition: CartoTypeWrapper.h:225
bool Found
True if the text was found.
Definition: CartoTypeWrapper.h:223
A class to draw a map using OpenGL ES.
Definition: CartoTypeWrapper.h:3019
void Draw()
Draws the map using OpenGL ES.
MapRenderer(Framework^ aFramework)
Creates a MapRenderer from a Framework. The parameter aFramework must not be null.
Parameters governing navigation behaviour.
Definition: CartoTypeWrapper.h:1347
int RouteDistanceTolerance
Maximum distance from the route in metres before the vehicle is deemed off-route.
Definition: CartoTypeWrapper.h:1360
int MinimumFixDistance
Minimum distance between location fixes in metres that is taken as an actual move.
Definition: CartoTypeWrapper.h:1358
int RouteTimeTolerance
Maximum time off route in seconds before a new route needs to calculated.
Definition: CartoTypeWrapper.h:1362
bool NavigationEnabled
If true, and if there is a route, the position on route is updated and turn information is created wh...
Definition: CartoTypeWrapper.h:1367
Information about the nearest road to a certain point.
Definition: CartoTypeWrapper.h:977
String^ Ref
The road reference of the road.
Definition: CartoTypeWrapper.h:984
double HeadingVectorY
The y coordinate of the heading of the nearest segment as a unit vector.
Definition: CartoTypeWrapper.h:996
SideOfRoad SideOfRoad
The side of the road on which the selected point lies, or SideOfRoad.None if the vehicle heading is n...
Definition: CartoTypeWrapper.h:1002
double Distance
The distance from the chosen point to the nearest point in meters.
Definition: CartoTypeWrapper.h:990
FeatureInfo^ FeatureInfo
The feature info of the road.
Definition: CartoTypeWrapper.h:980
double NearestPointY
The y coordinate of the nearest point on the road, in map coordinates, to the chosen point.
Definition: CartoTypeWrapper.h:988
double HeadingVectorX
The x coordinate of the heading of the nearest segment as a unit vector.
Definition: CartoTypeWrapper.h:994
double NearestPointX
The x coordinate of the nearest point on the road, in map coordinates, to the chosen point.
Definition: CartoTypeWrapper.h:986
String^ Name
The standard name of the road.
Definition: CartoTypeWrapper.h:982
double HeadingInDegrees
The heading of the nearest segment in degrees.
Definition: CartoTypeWrapper.h:992
Information about the nearest route segment to a point.
Definition: CartoTypeWrapper.h:750
double TimeAlongRoute
The estimated time of the nearest point, along the route, in seconds.
Definition: CartoTypeWrapper.h:769
double Heading
The heading of the nearest line as a map angle taken anti-clockwise from rightwards.
Definition: CartoTypeWrapper.h:773
int LineIndex
The index of the line within the segment's path: line N goes from point N to point N + 1.
Definition: CartoTypeWrapper.h:757
double NearestPointX
The point in the segment's path nearest to the other point, in map coordinates.
Definition: CartoTypeWrapper.h:759
double TimeAlongSegment
The estimated time within the current segment, in seconds.
Definition: CartoTypeWrapper.h:771
double DistanceToRoute
The distance from the other point to iNearestPoint in meters.
Definition: CartoTypeWrapper.h:763
double DistanceAlongSegment
The distance within the current segment in meters.
Definition: CartoTypeWrapper.h:767
double NearestPointY
The point in the segment's path nearest to the other point, in map coordinates.
Definition: CartoTypeWrapper.h:761
double DistanceAlongRoute
The distance of the nearest point along the route in meters.
Definition: CartoTypeWrapper.h:765
int SegmentIndex
The index of the segment in the Route object, or -1 if there were no segments.
Definition: CartoTypeWrapper.h:755
Positions for notices like the legend or scale bar.
Definition: CartoTypeWrapper.h:1231
NoticePosition(NoticeAnchor aAnchor, double aWidth, String^ aWidthUnit)
Creates a NoticePosition from an anchor position and a width. The width is ignored if the width unit ...
NoticePosition(NoticeAnchor aAnchor, double aWidth, String^ aWidthUnit, double aXInset, String^ aXInsetUnit, double aYInset, String^ aYInsetUnit)
Creates an NoticePosition from an anchor position, width and insets.
NoticePosition(NoticeAnchor aAnchor)
Creates a NoticePosition from an anchor position.
An on-curve or off-curve point for use in paths.
Definition: CartoTypeGeometry.h:70
Parameters giving detailed control of the perspective view.
Definition: CartoTypeWrapper.h:1281
double FieldOfViewDegrees
The camera's field of view in degrees.
Definition: CartoTypeWrapper.h:1313
double HeightMeters
The height of the camera above the terrain. The value 0 causes a default value to be used which prese...
Definition: CartoTypeWrapper.h:1303
Result ReadFromXml(String^ aText)
Reads a perspective parameter object from its XML form.
String ^ ToXml()
Creates a string representing a perspective parameter object in XML.
double DeclinationDegrees
The declination of the camera downward from the horizontal plane. Values are clamped to the range -90...
Definition: CartoTypeWrapper.h:1309
double PositionDegreesY
The latitude of the position of the point on the terrain below the camera, in degrees longitude (x) a...
Definition: CartoTypeWrapper.h:1299
double RotationDegrees
The amount by which the camera is rotated about its axis, after applying the declination,...
Definition: CartoTypeWrapper.h:1311
double AzimuthDegrees
The azimuth of the camera in degrees going clockwise, where 0 is N, 90 is E, etc.
Definition: CartoTypeWrapper.h:1305
double PositionDegreesX
The longitude of the position of the point on the terrain below the camera, in degrees longitude (x) ...
Definition: CartoTypeWrapper.h:1297
bool AutoAzimuth
If true, ignore AzimuthDegrees and use the current map orientation.
Definition: CartoTypeWrapper.h:1307
bool AutoPosition
If true, ignore PositionDegreesX and PositionDegreesY, and set the camera position so that the locati...
Definition: CartoTypeWrapper.h:1301
A 2D point using floating-point coordinates.
Definition: CartoTypeGeometry.h:34
A grid-aligned rectangle with double-precision coordinates suitable for map points.
Definition: CartoTypeGeometry.h:108
A set of points for creating a route, with optional heading and accuracy information.
Definition: CartoTypeWrapper.h:805
RoutePointList^ RoutePointList
The route points.
Definition: CartoTypeWrapper.h:816
CartoType::CoordType CoordType
The coordinate type of the route points.
Definition: CartoTypeWrapper.h:814
Information about an entire route.
Definition: CartoTypeWrapper.h:873
NearestSegmentInfo ^ NearestSegment(double aX, double aY, int aSection, double aPreviousDistanceAlongRoute)
Returns information about the nearest route segment to a point given in map coordinates.
double TollRoadDistance
Returns the total distance in metres of the parts of the route that are on toll roads.
Definition: CartoTypeWrapper.h:891
virtual int PointCount(int aContourIndex)
Returns the number of points in a contour.
virtual int ContourCount()
Returns the number of contours (sub-paths).
double Distance
The distance of the route in metres.
Definition: CartoTypeWrapper.h:883
NearestSegmentInfo ^ PointAtDistance(double aDistanceInMeters)
Returns information about a point a certain distance along a route.
RouteProfile^ Profile
The profile used to create this route.
Definition: CartoTypeWrapper.h:881
RouteSegment ^ RouteSegment(int aIndex)
Returns a route segment.
NearestSegmentInfo ^ PointAtTime(double aTimeInSeconds)
Returns information about a point a certain estimated time along a route.
double Time
The estimated time taken to traverse the route in seconds.
Definition: CartoTypeWrapper.h:885
int RouteSegmentCount
The number of route segments.
Definition: CartoTypeWrapper.h:887
virtual PathPoint ^ Point(int aContourIndex, int aPointIndex)
Returns a point given its contour and point indexes.
A point on a route, with its heading and location match parameters.
Definition: CartoTypeWrapper.h:781
LocationMatchParam^ LocationMatchParam
Parameters used when matching the point to a road or other routable segment. If null,...
Definition: CartoTypeWrapper.h:792
double Y
The X coordinate.
Definition: CartoTypeWrapper.h:786
double X
The X coordinate.
Definition: CartoTypeWrapper.h:784
double Heading
The heading in degrees clockwise from north.
Definition: CartoTypeWrapper.h:788
bool HeadingKnown
True if the heading is known.
Definition: CartoTypeWrapper.h:790
A route profile: parameters determining the type of route, including road speeds, bonuses and penalti...
Definition: CartoTypeWrapper.h:608
double Length
The vehicle's length in meters. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:654
int TurnTime
The estimated time in seconds taken for any turn at a junction that is not a slight turn or simply go...
Definition: CartoTypeWrapper.h:680
double TripleAxleLoad
The vehicle's triple axle load in metric tons. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:645
bool HazMat
True if the vehicle is carrying hazardous materials.
Definition: CartoTypeWrapper.h:657
double Height
The vehicle's height in meters. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:648
double AxleLoad
The vehicle's axle load in metric tons. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:639
Array< double >^ Speed
Speeds along roads in kilometres per hour.
Definition: CartoTypeWrapper.h:660
RouteProfile(RouteProfileType aProfileType)
Creates a RouteProfile of one of the standard types.
static int CustomType(int aIndex)
Returns the index for a custom type 0...31 in the speed, bonus and restriction override arrays....
Definition: CartoTypeWrapper.h:624
Array< double >^ GradientBonus
Bonuses applied to roads with a particular gradient.
Definition: CartoTypeWrapper.h:735
double DoubleAxleLoad
The vehicle's double axle load in metric tons. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:642
bool Shortest
Set this flag to true to get the shortest route by distance or time, ignoring weightings....
Definition: CartoTypeWrapper.h:706
Result CopyWeights(int aSourceType, int aDestType)
Copies all weights from one route type to another. Intended to make it easier to create custom route ...
double TollPenalty
The penalty applied to toll roads as a number between zero and one.
Definition: CartoTypeWrapper.h:721
Array< double >^ Bonus
Bonuses or penalties in notional km per hour to be added to road types to make them more or less like...
Definition: CartoTypeWrapper.h:666
int CrossTrafficTurnTime
The estimated time in seconds taken for a turn across the traffic: that is, a left turn in drive-on-r...
Definition: CartoTypeWrapper.h:695
int VehicleType
Flags taken from the access flags defined in FeatureInfo indicating the vehicle type....
Definition: CartoTypeWrapper.h:633
int TrafficLightTime
The estimated delay in seconds caused by traffic lights.
Definition: CartoTypeWrapper.h:700
double Width
The vehicle's width in meters. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:651
Result ReadFromXmlString(String^ aString)
Reads the route profile from a string in XML format.
Result ReadFromXmlFile(String^ aFileName)
Reads the route profile from an file in XML format.
bool ShortestByTime
Set this flag to true if Shortest should produce the shortest route by time rather than distance.
Definition: CartoTypeWrapper.h:709
int UTurnTime
The estimated time in seconds taken for a U-turn, defined as a turn very close to 180 degrees (within...
Definition: CartoTypeWrapper.h:686
uint64_t GradientFlags
Flags indicating which roads are affected by gradient speeds and bonuses; normally steps,...
Definition: CartoTypeWrapper.h:741
Array< double >^ GradientSpeed
Speeds added to roads with a particular gradient.
Definition: CartoTypeWrapper.h:732
double Weight
The vehicle's weight in metric tons. Values of zero or less mean 'unknown'.
Definition: CartoTypeWrapper.h:636
Array< int >^ RestrictionOverride
This array of bit masks allows restrictions to be overridden for certain types of road....
Definition: CartoTypeWrapper.h:674
String ^ WriteAsXmlString()
Creates an XML string representing the route profile.
String^ Name
The optional name of the profile.
Definition: CartoTypeWrapper.h:627
Result WriteAsXmlFile(String^ aFileName)
Writes the route profile to a file in XML format.
Part of a route, consisting of a turn and the section of the route from that turn to the next one.
Definition: CartoTypeWrapper.h:824
virtual int PointCount(int aContourIndex)
The number of points in a contour.
double TurnAngle
Returns the turn angle.
Definition: CartoTypeWrapper.h:847
double Distance
Returns the distance in metres.
Definition: CartoTypeWrapper.h:835
String^ Ref
The road reference.
Definition: CartoTypeWrapper.h:831
int Section
Returns the route section this segment belongs to.
Definition: CartoTypeWrapper.h:853
virtual PathPoint ^ Point(int aContourIndex, int aPointIndex)
Returns a point given its contour and point indexes.
String^ Destination
The destination.
Definition: CartoTypeWrapper.h:833
virtual int ContourCount()
The number of contours (sub-paths). It is always 1 for this class.
Definition: CartoTypeWrapper.h:858
String^ Instructions
Returns turn instructions provided by the routing system. If not empty they are used instead of instr...
Definition: CartoTypeWrapper.h:855
double Time
Returns the estimated time taken to traverse the segment in seconds, including TurnTime.
Definition: CartoTypeWrapper.h:837
double TurnTime
Returns the estimated time taken by the turn at the start of the segment; this is included in m_time.
Definition: CartoTypeWrapper.h:839
int Choices
Returns the number of choices at this turning if known; 0 if not known.
Definition: CartoTypeWrapper.h:851
bool IsContinue
Returns true if this is a 'continue' turn, false if not.
Definition: CartoTypeWrapper.h:843
int ExitNumber
Returns the exit number, counting the current junction as 0, if this junction is part of a roundabout...
Definition: CartoTypeWrapper.h:849
String^ Name
The road name.
Definition: CartoTypeWrapper.h:829
Parameters used in Framework.LoadMapsAutomatically.
Definition: CartoTypeWrapper.h:1565
IVector< TileSet^>^ TileSetList
Definition: CartoTypeWrapper.h:1568
A set of map tiles used in TileParam.
Definition: CartoTypeWrapper.h:1544
Rect^ TileRange
The inclusive range of files that are available.
Definition: CartoTypeWrapper.h:1554
String^ FileNameTemplate
A template using format specifiers from the C++ std::format function, which is used to create the fil...
Definition: CartoTypeWrapper.h:1552
int MinDisplayZoom
The minimum zoom level at which these tiles are to be drawn.
Definition: CartoTypeWrapper.h:1558
int FileZoom
The zoom level of these tiles.
Definition: CartoTypeWrapper.h:1556
int MaxDisplayZoom
The maximum zoom level at which these tiles are to be drawn.
Definition: CartoTypeWrapper.h:1560
A matrix of route times and distances between sets of points.
Definition: CartoTypeWrapper.h:1517
int Time(int aFromIndex, int aToIndex)
Returns the time in seconds taken to travel on the best route from one of the 'from' points to one of...
int FromCount
The number of 'from' points.
Definition: CartoTypeWrapper.h:1520
int ToCount
Returns the number of 'to' points.
Definition: CartoTypeWrapper.h:1522
int Distance(int aFromIndex, int aToIndex)
Returns the distance in metres along the best route from one of the 'from' points to one of the 'to' ...
Information needed when adding a traffic event.
Definition: CartoTypeWrapper.h:1183
LocationRef^ LocationRef
The location reference.
Definition: CartoTypeWrapper.h:1192
TrafficInfo^ TrafficInfo
The traffic information.
Definition: CartoTypeWrapper.h:1190
static bool CreateFromDatex2Xml(String^ aSituationRecord, TrafficEvent^ aTrafficEvent)
Creates a TrafficEvent from a DATEX II situation record in XML format.
Traffic information. This information is normally used in combination with a location reference.
Definition: CartoTypeWrapper.h:1045
double Speed
Permitted or expected speed in kph: 255 or greater means no speed limit; 0 or less means the route is...
Definition: CartoTypeWrapper.h:1056
int VehicleTypes
Vehicle types affected by this information, taken from the RouteProfile literals; use AllVehicles to ...
Definition: CartoTypeWrapper.h:1054
Information about a turn through a junction.
Definition: CartoTypeWrapper.h:469
bool IsContinue
True if this turn is a continuation of the current road and no notification is needed.
Definition: CartoTypeWrapper.h:479
void Clear()
Clears the data from a Turn object, returning it to its newly constructed state.
RoundaboutState RoundaboutState
The roundabout state.
Definition: CartoTypeWrapper.h:481
int ExitNumber
The junction to take, counting the current junction as 0, if this junction is part of a roundabout.
Definition: CartoTypeWrapper.h:485
double Time
The estimated time to the turn in seconds.
Definition: CartoTypeWrapper.h:489
String^ FromName
The name of the road before the turn.
Definition: CartoTypeWrapper.h:491
String^ Destination
The destination of the road after the turn.
Definition: CartoTypeWrapper.h:503
String^ FromRef
The reference code (e.g., B4009) of the road before the turn.
Definition: CartoTypeWrapper.h:493
double Distance
The distance to the turn in metres.
Definition: CartoTypeWrapper.h:487
String^ Instructions
Instructions for the turn, in the current locale's language.
Definition: CartoTypeWrapper.h:505
int Index
The index of the turn, which is unique within a route. Used to avoid duplication when issuing voice i...
Definition: CartoTypeWrapper.h:507
Turn()
Creates a Turn object.
String^ ToRef
The reference code (e.g., B4009) of the road after the turn.
Definition: CartoTypeWrapper.h:499
double TurnAngle
The turn angle: 0 = straight ahead; negative = left, positive = right.
Definition: CartoTypeWrapper.h:483
FeatureInfo^ FromRouteInfo
The type of the road before the turn.
Definition: CartoTypeWrapper.h:495
String^ ToName
The name of the road after the turn.
Definition: CartoTypeWrapper.h:497
TurnType Type
The turn type: ahead, left, right, etc.
Definition: CartoTypeWrapper.h:477
FeatureInfo^ ToRouteInfo
The type of the road after the turn.
Definition: CartoTypeWrapper.h:501
General utility functions
Definition: CartoTypeWrapper.h:3032
static String ^ Version()
Returns the current CartoType version as a string of the form MAJOR.MINOR.
static String ^ SetAttribute(String^ aString, String^ aKey, String^ aValue)
Sets an attribute in a string to be used when creating a map object.
static String ^ ErrorString(Result aError)
Returns a short description of an error, given its code.
static double AzimuthInDegrees(double aLong1, double aLat1, double aLong2, double aLat2)
Returns the azimuth (direction along a great circle) in degrees from (aLong1,aLat1) to (aLong2,...
static String ^ Description()
Returns a Git description of the current CartoType version as a string of the form MAJOR....
static Point ^ PointAtAzimuth(double aLong, double aLat, double aDir, double aDistanceInMeters)
Finds the point in degrees at a certain distance and azimuth direction from a starting point....
static PointValue PointInDegreesFromUKGridReference(String^ aGridReference)
Converts a UK Ordnance Survey national grid reference (two capital letters followed by an even number...
static String ^ UKGridReferenceFromDegrees(PointValue aPointInDegrees, int aDigits)
Converts a point in degrees latitude and longitude (WGS84) into a UK Ordnance Survey national grid re...
static String ^ Build()
Returns the current CartoType build as a string.
static double GreatCircleDistanceInMeters(double aLong1, double aLat1, double aLong2, double aLat2)
Returns the great-circle distance in meters between (aLong1,aLat1) and (aLong2,aLat2)....
The view state, which can be retrieved or set so that maps can be recreated.
Definition: CartoTypeWrapper.h:1318
int WidthInPixels
The display width in pixels.
Definition: CartoTypeWrapper.h:1328
int HeightInPixels
The display height in pixels.
Definition: CartoTypeWrapper.h:1330
double ScaleDenominator
The denominator of the scale fraction; e.g., 50000 for 1:50000.
Definition: CartoTypeWrapper.h:1336
String ^ ToXml()
Creates a string representing a view state in XML.
PerspectiveParam^ PerspectiveParam
The parameters to be used for perspective mode; if null, default parameters are used.
Definition: CartoTypeWrapper.h:1342
Result ReadFromXml(String^ aText)
Reads a view state from its XML form.
double ViewCenterDegreesX
The X coordinate (longitude) of the view center in map coordinates.
Definition: CartoTypeWrapper.h:1332
double RotationDegrees
The clockwise rotation of the view in degrees.
Definition: CartoTypeWrapper.h:1338
double ViewCenterDegreesY
The Y coordinate (latitude) of the view center in map coordinates.
Definition: CartoTypeWrapper.h:1334
bool Perspective
True if perspective mode is on.
Definition: CartoTypeWrapper.h:1340
A path defining a set of open and closed curves.
Definition: CartoTypeGeometry.h:140
Definition: CartoTypeWrapper.h:69
IVector< MapObjectGroup^> MapObjectGroupList
A type for lists of map object groups returned by search functions.
Definition: CartoTypeWrapper.h:1277
RouterType
Types of router; used when selecting a router type.
Definition: CartoTypeWrapper.h:396
@ TECH
Turn-expanded contraction hierarchy.
@ StandardAStar
The A* router, which gives fast performance but takes a lot of memory and cannot create a route going...
@ StandardContractionHierarchy
The contraction hierarchy router is intended where less RAM is available: for example with large maps...
@ Default
This router type causes the default router to be selected: the one for which serialized data is avail...
@ TurnExpandedAStar
A version of the A* router with road nodes and turn arcs; slower than StandardAStar,...
LegendStyleFlag
Flags used to create Legend objects with standard styles.
Definition: CartoTypeWrapper.h:2867
@ ScaleStyle
Style flags used in the constructor to create an empty legend object suitable for a scale bar....
@ EmptyStyle
Style flags to create an empty legend object.
@ ScaleBar
A style flag to add a scale bar.
@ ScaleInTitle
A style flag to add the scale in the form 1:NNN to the title.
@ HeightProfile
A style flag to add a height profile for the current route.
@ MapObjects
A style flag to add lines for common map objects including roads, forests, parks and stations.
@ Title
A style flag to add the name of the main map as a title.
@ StandardStyle
Style flags to select the standard style.
@ TurnStyle
Style flags used in the constructor to create an empty legend object suitable for turn instructions....
FollowMode
Flags controlling the way the map follows the user location and heading and automatically zooms.
Definition: CartoTypeWrapper.h:318
@ LocationHeading
The map is centred on the user's location and rotated to the user's heading.
@ LocationZoom
The map is centred on the user's location and zoomed to a suitable level for the user's speed.
@ None
The map does not follow the user's location or heading.
@ Location
The map is centred on the user's location.
@ LocationHeadingZoom
The map is centred on the user's location, rotated to the user's heading, and zoomed to a suitable le...
CoordType
Coordinate types.
Definition: CartoTypeGeometry.h:151
@ Degree
Longitude (X) and latitude (Y) in degrees. X increases to the east and Y increases to the north.
LetterCase
Definition: CartoTypeWrapper.h:145
@ Upper
The case of the letters 'A', 'B', 'C, etc.
@ None
A code used when the letter case is to be left as it is, or is irrelevant.
@ Lower
The case of the letters 'a', 'b', c', etc.
@ Title
The case of letters like U+01C8 'Lj' and a few others; also indicates that the first letter of each w...
Result
Result codes returned by CartoType API functions.
Definition: CartoTypeResult.h:15
StringMatchMethod
Flags and constants used when finding text.
Definition: CartoTypeWrapper.h:115
@ Loose
Loose matching: ignore non-alphanumerics and fold accents and case.
@ Exact
Strings must match exactly.
@ Fuzzy
Allow fuzzy matches: ignore non-alphanumerics, fold accents and allow imperfect matches.
@ Prefix
The search term must be an exact match or a prefix of the found string.
@ FoldCaseFlag
A flag to fold letter case.
@ FoldAccentsFlag
A flag to match accented and unaccented letters.
@ PrefixFlag
A flag to match all strings for which the search term is a perfect match or a prefix.
@ IgnoreNonAlphanumerics
Ignore all characters that are not letters or digits.
@ FuzzyFlag
A flag to allow imperfect matches with a small number of omitted, incorrect or extra characters.
@ IgnoreWhitespaceFlag
A flag to ignore whitespace when matching.
@ FoldCase
Fold case when matching strings.
@ IgnoreSymbolsFlag
A flag to ignore all characters that are not letters, digits or whitespace when matching.
Windows::Foundation::Collections::IVector< LRPoint^> LRGeometry
A series of LRPoint objects.
Definition: CartoTypeWrapper.h:1156
LRType
The type of a location reference used for traffic information.
Definition: CartoTypeWrapper.h:1070
@ GeoCoordinate
A point on the earth's surface.
@ PointAlongLine
A point on a line in the route network.
@ Circle
A circle defined as a point and a radius.
@ ClosedLine
A closed line in the route network.
@ Line
A line in the route network.
@ Polygon
A polygon defined using a set of points.
@ PointWithAccessPoint
A point on the route network providing access to a nearby POI: the first point is the point on the li...
@ Rectangle
A rectangle aligned to the grid of latitude and longitude: it is defined using two points at opposite...
ValidityFlag
Bit flags used in Framework.Navigate to indicate which information is valid.
Definition: CartoTypeWrapper.h:334
@ Course
A flag used in Framework.Navigate to indicate that the course is valid.
@ Speed
A flag used in Framework.Navigate to indicate that the speed is valid.
@ Position
A flag used in Framework.Navigate to indicate that the position is valid.
@ Time
A flag used in Framework.Navigate to indicate that the time is valid.
@ Height
A flag used in Framework.Navigate to indicate that the height is valid.
FeatureType
Every map object has a feature type.
Definition: CartoTypeFeatureInfo.h:30
FontStyleFlag
Flags for font styles.
Definition: CartoTypeWrapper.h:1251
@ Bold
The bit flag used to select bold face.
@ Italic
The bit flag used to select italics.
@ Serif
The bit flag used to select a serif font.
@ Cursive
The bit flag used to select a cursive font.
@ Monospace
The bit flag used to select a monospace font.
@ Fantasy
The bit flag used to select a 'fantasy' font.
TurnType
Turn types on a route. Turns at junctions are classified by dividing the full circle into 45-degree s...
Definition: CartoTypeWrapper.h:421
@ BearRight
A turn between 22.5 degrees and 67.5 degrees right or a turn through a smaller angle which is the rig...
@ SharpRight
A turn between 112.5 degrees and 180 degrees right.
@ Ahead
A turn of less than 22.5 degrees left or right, unless this is a fork with two choices,...
@ None
No turn exists or is needed. This turn type is used at the start of a route.
@ Right
A turn between 67.5 degrees and 112.5 degrees right.
@ Left
A turn between 67.5 degrees and 112.5 degrees left.
@ Around
This turn type is use for U-turns: turns back along the same road.
@ SharpLeft
A turn between 112.5 degrees and 180 degrees left.
@ BearLeft
A turn between 22.5 degrees and 67.5 degrees left. or a turn through a smaller angle which is the lef...
LRFunctionalRoadClass
Functional road classes used in OpenLR points.
Definition: CartoTypeWrapper.h:1102
RouteProfileConstants
Constants referring to the RouteProfile class.
Definition: CartoTypeWrapper.h:533
@ SkiNordic
The index for nordic ski trails in the speed, bonus and restriction override arrays.
@ LightRail
The index for light railways in the speed, bonus and restriction override arrays.
@ Waterway
The index for waterways in the speed, bonus and restriction override arrays.
@ TrunkRoad
The index for trunk roads in the speed, bonus and restriction override arrays.
@ Motorway
The index for motorways in the speed, bonus and restriction override arrays.
@ Bridleway
The index for bridleways in the speed, bonus and restriction override arrays.
@ AerialWay
The index for aerial ways in the speed, bonus and restriction override arrays.
@ Railway
The index for railways in the speed, bonus and restriction override arrays.
@ Subway
The index for subways in the speed, bonus and restriction override arrays.
@ Footway
The index for footways in the speed, bonus and restriction override arrays.
@ LivingStreet
The index for living streets in the speed, bonus and restriction override arrays.
@ PedestrianRoad
The index for pedestrian roads in the speed, bonus and restriction override arrays.
@ TrunkLink
The index for trunk road links in the speed, bonus and restriction override arrays.
@ UnpavedRoad
The index for unpaved roads in the speed, bonus and restriction override arrays.
@ PrimaryRoad
The index for primary roads in the speed, bonus and restriction override arrays.
@ Track
The index for tracks in the speed, bonus and restriction override arrays.
@ PassengerFerry
The index for passenger ferries in the speed, bonus and restriction override arrays.
@ OtherRoad
The index for other roads in the speed, bonus and restriction override arrays.
@ VehicularFerry
The index for vehicular ferries in the speed, bonus and restriction override arrays.
@ PrimaryLink
The index for primary road links in the speed, bonus and restriction override arrays.
@ MotorwayLink
The index for motorway links in the speed, bonus and restriction override arrays.
@ UnclassifiedRoad
The index for unclassified roads in the speed, bonus and restriction override arrays.
@ SkiDownhill
The index for downhill ski trails in the speed, bonus and restriction override arrays.
@ Cycleway
The index for cycleways in the speed, bonus and restriction override arrays.
@ RouteTypeCount
The size of the speed, bonus ands restriction override arrays, which are indexed by the route feature...
@ SecondaryLink
The index for secondary road links in the speed, bonus and restriction override arrays.
@ UnknownRoute
The index for unknown routes in the speed, bonus and restriction override arrays.
@ SecondaryRoad
The index for secondary roads in the speed, bonus and restriction override arrays.
@ ResidentialRoad
The index for residential roads in the speed, bonus and restriction override arrays.
@ Steps
The index for steps in the speed, bonus and restriction override arrays.
@ TertiaryRoad
The index for tertiary roads in the speed, bonus and restriction override arrays.
@ ServiceRoad
The index for service roads in the speed, bonus and restriction override arrays.
FilePolicy
Definition: CartoTypeWrapper.h:1372
Align
Text alignments.
Definition: CartoTypeWrapper.h:2851
@ Center
Center the text.
@ Reverse
Align to the right for left-to-right text, to the left for right-to-left text.
@ Right
Align to the right and leave space on the left.
@ Left
Align to the left and leave space on the right.
@ Standard
Align to the left for left-to-right text, to the right for right-to-left text.
IVector< RoutePoint^> RoutePointList
A type for lists of route points: see RouteCoordSet.
Definition: CartoTypeWrapper.h:796
LRFormOfWay
Forms of way used in OpenLR points.
Definition: CartoTypeWrapper.h:1116
SideOfRoad
The side of the road: used in traffic information.
Definition: CartoTypeWrapper.h:968
ColorValue
Values of frequently used colors as 32-bit integers.
Definition: CartoTypeWrapper.h:1421
@ Cyan
Opaque cyan.
@ White
Opaque white.
@ DarkYellow
Opaque dark yellow.
@ Yellow
Opaque yellow.
@ DarkCyan
Opaque dark cyan.
@ DarkRed
Opaque dark red.
@ DarkBlue
Opaque dark blue.
@ TransparentBlack
The 'null color' transparent black.
@ DarkGray
Opaque dark gray.
@ Blue
Opaque blue.
@ Gray
Opaque gray.
@ Magenta
Opaque magenta.
@ Green
Opaque green.
@ DarkMagenta
Opaque dark magenta.
@ Black
Opaque black.
@ DarkGreen
Opaque dark green.
RoundaboutState
Turns involving roundabouts are marked as such so that exit numbers can be counted
Definition: CartoTypeWrapper.h:456
@ None
This junction does not involve a roundabout.
@ Continue
This junction continues around a roundabout.
@ Enter
This junction enters a roundabout.
@ Exit
This junction exits a roundabout.
IVector< MapObject^> MapObjectList
A type for lists of map objects returned by search functions.
Definition: CartoTypeGeometry.h:30
RouteProfileType
Constants used to select frequently-used profiles.
Definition: CartoTypeWrapper.h:515
@ Hike
A profile type for walking, preferring off-road paths.
@ Cycle
A profile type for cycling.
@ Walk
A profile type for walking.
@ Ski
A profile type for downhill skiing.
@ Car
A profile type for private car navigation.
FileType
File types of interest to CartoType.
Definition: CartoTypeWrapper.h:1019
@ Jpeg
JPEG (Joint Photographic Expert Group) image files.
@ Tiff
TIFF (Tagged Image File Format) image files.
@ Ctm1
CTM1 (CartoType Map Data Type 1) map data files.
@ Gpx
GPX (GPS Exchange) files.
@ Ctsql
CTSQL (CartoType SQLite format) map data files.
@ Kml
KML (Keyhole Markup Language) map data files.
@ CartoTypeRoute
CTROUTE (CartoType XML route) files.
@ Ctms
CTMS (CartoType Map Data, Serialized) map data files.
@ Png
PNG (Portable Network Graphics) image files.
NoticeAnchor
Positions for notices like the legend or scale bar. Use functions taking an NoticePosition for greate...
Definition: CartoTypeWrapper.h:1197
@ TopRight
The top right corner of the display.
@ Bottom
The center of the bottom edge of the display.
@ Center
The center of the display.
@ BottomRight
The bottom right corner of the display.
@ Right
The center of the right side of the display.
@ Left
The center of the left side of the display.
@ BottomLeft
The bottom left corner of the display.
@ Top
The center of the top edge of the display.
@ TopLeft
The top left corner of the display.
MapObjectType
An enumerated type for map objects.
Definition: CartoTypeWrapper.h:100
@ Point
A point in two-dimensional space.
@ Array
Information arranged as an array of values, such as an image or height data. Essentially a texture in...
@ Line
A line in two-dimensional space, consisting of one or more open contours.
@ Polygon
A polygon in two-dimensional space, consisting of one or more closed contours.
@ TypeCount
The total number of map object types. This is not an actual type.
Color CreateColor(int aRed, int aGreen, int aBlue)
Creates a color from red, green, and blue values.
Definition: CartoTypeWrapper.h:1474
RoadOrientation
The orientation of a path along a road: used in traffic information.
Definition: CartoTypeWrapper.h:1061
IVector< BlendStyle^> BlendStyleSet
A set of rules for modifying style sheet colors, for example to add contrast, lighten or darken....
Definition: CartoTypeWrapper.h:1513
WritableMapType
Types of writable maps.
Definition: CartoTypeWrapper.h:1010
@ Memory
A writable map stored in memory.
@ SQLite
A writable map stored in an SQLite database.
NavigationState
States of the navigation system.
Definition: CartoTypeWrapper.h:349
@ NewRoute
A new route has been calculated.
@ OffRoute
The current position is off the route.
@ Departure
Navigation has started on a new route.
@ None
No route has been created, or navigation is disabled.
@ Turn
The current position is on the route and turn information is available.
@ Routing
Route calculation is in progress.
@ Arrival
The latest position is on the route and very close to the destination.
@ TurnRound
The latest position is on the route but a U-turn is needed.
@ NoPosition
There is a route but no position has been supplied.
FollowFlag
Bit flags used by the FollowMode constants.
Definition: CartoTypeWrapper.h:306
@ Heading
A flag to rotate the map to the user's heading.
@ Zoom
A flag to set the map to a suitable zoom level for the user's speed.
@ Location
A flag to make the center of the map follow the user's location.
Definition: CartoTypeGeometry.h:50
The return value of the Framework function UpdateTrafficFromDatex2.
Definition: CartoTypeWrapper.h:1091
Result Error
The result code: 0 = success.
Definition: CartoTypeWrapper.h:1093
int EventsAdded
The number of events successfully added to the dynamic routing information.
Definition: CartoTypeWrapper.h:1097
int EventsRead
The number of events parsed from the XML text.
Definition: CartoTypeWrapper.h:1095