Skip to content

FAQ

Draw a schematic view of a roundabout

The required information can be found inside the CrossingView structure. Use the information from getRoundaboutExitPoints(). Draw an arc starting at the 6 o'clock position counterclockwise (clockwise for left handed traffic) to the last angle (meaning the StreetLeavingCount-th entry) which indicates the exit to be taken. The exits passed shall be drawn at the previously given angles (RoundaboutExitPoints[0], ..., RoundaboutExitPoints[StreetLeavingCount-1]). Here is a schematic drawing about the different values given:

roundaboutcompass

Due to the specific coordinate system the numerical values for the given angles are not sorted within RoundaboutExitPoints. A symmetric 8-leg roundabout (like a wind rose) with entrance in 6 o'clock ("South") being left at 4th exit ("North") would be given as RoundaboutExitPoints[]=315,0,45,90,... where the exits belong to "Southeast", "East", "Northeast" and finally "North". In the most simple fashion the exits can be drawn leaving the round perpendicular. However sometimes exits may look more like tangents with very small angles (<90°). Those angles are given inside getExitAnglesFixed() so a more realistic picture can be drawn by using those leaving angles instead of 90°. Be aware that the following exits (which are never reached) are not given, so there is no information given about "Northwest", "West" and "Southwest".

Draw a schematic view of a regular crossing

The required information can be found inside the CrossingView structure. Use the information from getStreetLeaving(). Draw a path from 6 o'clock position connected with the direction of the street after the maneuver getStreetLeaving()[0]. Use the other angles to complete the schematic drawing of the crossing.

Implement a current car position outside the (pixel) center of the map

Many navigation systems move the current car position (usually a red arrow-like symbol) outside the screen center. Given that the map is configured to automatically turn in the direction that car is driving the drive can conveniently just look at the top of the map to see where (s)he is going to next.

SDK_SetMapViewFixPoint() allows to do exactly that. From now on the virtual center (fix point) of the map will be at an arbitrary, relative position on the screen. Note that all other APIs, e.g. SDK_SetMapViewParameter(), dealing with "center" coordinates will use that new fix point. Here we show the screen if you use SDK_SetMapViewFixPoint(mapviewID, 0, -50) to set the fix point to lower quarter of the height, but keep it in the middle of the x-dimension:

   +------------------+
   |                  |
   |                  |
   |                  |
   |                  |
   |        x         |
   |                  |
   +------------------+

From now you map will also rotate around that position (x).