Follow

Geofences

Geofence File Specification

Specification version 2.0


1. About RAD Files

You can define special zones in Sygic FLEET navigation. The navigation then provides events about entering or leaving those zones. The zones are displayed with the defined color, and the speed limit warning inside the zone is set to the max allowed speed. The file has to be placed in the folder \Res\geofiles\ during startup of the navigation.

2. RAD File Format

Header DWORD "RADF"  
  DWORD Version Set the version to 2
  UINT32 Area count Number of areas defined in the file
  DWORD Area 1 offset Pointer to file position, where Area 1 is defined
  DWORD Area 2 offset  
  DWORD ..  
Area 1 UINT32 Count of points in Area 1 Number of points that
 
  INT32 Area 1 Bounding Rect Left Minimum value of X coordinates defined in points
  INT32 Area 1 Bounding Rect Top Maximum value of Y coordinates defined in points
  INT32 Area 1 Bounding Rect Right Maximum value of X coordinates defined in points
  INT32 Area 1 Bounding Rect Bottom Minimum value of Y coordinates defined in points
  DWORD Offset to Area 1 data Pointer to Point1.X in the file
  DWORD Area 1 color Color to fill the area, in ARGB, set to 0x00FFFFFF for invisible zone
  DWORD Max speed in Area 1 The speed restriction in Area 1 is reduced to this speed (if the original restriction is higher). For no limitations set to zerp. Defined in km/h
  DWORD ID of the Area 1 Set an unique identifier of the area
  DWORD Avoid type of the Area 1 0 area is not avoided, 1 area is avoided/prohibited
Area 1 - data INT32 Point1.X Longitude of the Point1 in degrees multiplied by 100 000
  INT32 Point1.Y Latitude of the Point1 in degrees multiplied by 100 000
  INT32 Point2.X  
  INT32 Pont2.Y  
  INT32 ...  
Area 2 UINT Count of points in Area 2  
  INT32 Area 2 Bounding Rect Left  
  INT32 Area 2 Bounding Rect Top  
  INT32 Area 2 Bounding Rect Right  
  INT32 Area 2 Bounding Rect Bottom  
  DWORD Offset to Area 2 data  
  DWORD Area 2 color  
  DWORD Max speed in Area 2  
  DWORD ID of the Area 2  
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments