{
	"$schema": "http://json-schema.org/draft-061/schema#",
	"title": "Zestaw danych GPS niezbędnych dla monitorowania przewozów towarów wrażliwych ewidencjowanych w SENT GEO wersja 0.61 / A set of GPS data necessary to monitor the transport of sensitive goods evidenced by SENT GEO version 0.61",
	"description": "Schemat służy do walidacji zestawów danych GPS w formacie JSON (ang. JavaScript Object Notation) przekazywanych poprzez interfejs danych w celu monitorowania przewozów towarów wrażliwych ewidencjowanych w SENT GEO. Elementem walidacji, który nie jest ujęty w schemacie, jest ograniczenie na wielkość przesyłanego pakietu wynoszące 500 KB. / The scheme is used to validate GPS data sets in the JSON (JavaScript Object Notation) format transmitted through the data interface to monitor the transport of sensitive goods registered in SENT GEO. The schema do not include the packet size limit which is equal to of 500 KB.",
	"type": "array",
	"items": {
		"title": "Dane GPS niezbędne dla monitorowania przewozów towarów wrażliwych ewidencjowanych w SENT GEO wersja 0.61 / GPS data necessary to monitor the transport of sensitive goods evidenced by SENT GEO version 0.61",
		"description": "Schemat walidacji pojedynczego obiektu zawierającego dane GPS w formacie JSON przekazywanego poprzez interfejs danych w celu monitorowania przewozów towarów wrażliwych ewidencjowanych w SENT GEO. / Scheme for a single object containing GPS data in the JSON format passed through the data interface to monitor the transport of sensitive goods evident in the SENT GEO.",
		"type": "object",
		"properties": {
			"id": {
				"description": "Unikalny identyfikator rekordu w systemie źródłowym, zmienna stosowana dla potrzeb weryfikacji w okresie testów. / The unique identifier of the record in the source system, the variable used for verification purposes during the testing period.",
				"type": "string",
				"minLength": 1,
				"maxLength": 36,
				"examples": ["1", "1960472"]
			},
			"dev": {
				"description": "Unikalny identyfikator lokalizatora, dozwolona maksymalna długość 50 znaków, dozwolone są małe i wielkie litery łacińskie z przedziałów (a-z) i (A-Z), cyfry (0-9) oraz znaki myślnik-minus (ang. hyphen-minus) (-) i podkreślenie (ang. underscore) (_), które stanowią podzbiór znaków ASCI (ang. American Standard Code for Information Interchange). Wielkość liter nie jest rozróżniana. / The unique identifier of the locator, the maximum length of 50 characters is allowed, small and uppercase Latin letters are allowed from the ranges (a-z) and (A-Z), digits (0-9), hyphen-minus (-),  underscore) (_), which are a subset of the ASCI characters (American Standard Code for Information Interchange).The size of letters is not distinguished.",
				"type": "string",
				"minLength": 1,
				"maxLength": 50,
				"pattern": "^[a-zA-Z0-9\\-_]{1,50}$",
				"examples": ["00000000000B1", "35A058060495422C7934"]
			},
			"lat": {
				"description": "Szerokość geograficzna pobrana z nadajnika GPS, system odniesienia WGS 84, zalecana minimalna liczba miejsc po przecinku: 6, dozwolona maksymalna liczba miejsc po przecinku: 10. Jeśli dane spełniają warunek lat < 49.0 lub lat > 54.835778 to są odrzucane. / Latitude taken from the GPS transmitter, WGS reference system 84, recommended minimum number of decimal places: 6, maximum number of decimal places allowed: 10. If the data meets the condition lat < 49.0 or lat > 54.835778, the data is rejected. ",
				"type": "number",
				"minimum": -90.0,
				"maximum": 90.0,
				"multipleOf": 0.0000000001,
				"examples": [52.0375868826, 52.172644]
			},
			"lon": {
				"description": "Długość geograficzna pobrana z nadajnika GPS, system odniesienia WGS 84, zalecana minimalna liczba miejsc po przecinku: 6, dozwolona maksymalna liczba miejsc po przecinku: 10. Jeśli dane spełniają warunek lon < 14.116667 lub lon > 24.15 to są odrzucane. Jeśli dane spełniają warunek 54.9 - lat - 0.3*lon > 0 lub  1.25 * lon + 20.375 - lat > 0 lub lon > 19 AND lat > 54.5 to są odrzucane./ Longitude taken from the GPS transmitter, WGS reference system 84, recommended minimum number of decimal places: 6, maximum number of decimal places allowed: 10. If the data meets the condition lon < 14.116667 or lon > 24.15, the data is rejected. If the data meets the condition 54.9 - lat - 0.3*lon > 0 or  1.25 * lon + 20.375 - lat > 0 or lon > 19 AND lat > 54.5, the data is rejected. ",
				"type": "number",
				"minimum": -180.0,
				"maximum": 180.0,
				"multipleOf": 0.0000000001,
				"examples": [21.1956136, 20.026094]
			},
			"alt": {
				"description": "Wysokość elipsoidalna pobrana z nadajnika GPS, jednostka [m], dozwolona maksymalna liczba miejsc po przecinku: 2. / Ellipsoidal height taken from the GPS transmitter, unit [m], maximum number of decimal places allowed: 2.",
				"type": ["number", "null"],
				"minimum": -1000.0,
				"maximum": 4000.0,
				"multipleOf": 0.01,
				"examples": [10.0, 200.02]
			},
			"tsp": {
				"description": "Stempel czasowy zawierający datę i czas pobrane z nadajnika GPS, skojarzone z pozycją geograficzną z danego rekordu, strefa czasowa UTC, stempel czasowy SENT GEO posiada format zbliżony do Epoch / Unix Timestamp, ale podany z dokładnością do mikrosekundy (16 cyfr), jest to zatem liczba mikrosekund, które upłynęły od '00:00:00 Coordinated Universal Time (UTC), Czwartek, 1 Stycznia 1970', minimalna wartość wskazuje na 2017.09.20 00:00:00 UTC, liczba całkowita. / Timestamp includes date and time taken from the GPS transmitter, associated with the geographical position of the record, UTC time zone, SENT GEO timestamp is similar to Epoch / Unix Timestamp, but given to the microsecond (16 digits), this is the number of microseconds that have passed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, the minimum value indicates 2017.09.20 00:00:00 UTC, integer.",
				"type": "integer",
				"minimum": 1505865600000000,
				"examples": [1506086623000000, 1511273867317000]
			},
			"spd": {
				"description": "Prędkość przemieszczania się pobrana z nadajnika GPS - jednostka [m/s], dozwolona maksymalna liczba miejsc po przecinku: 2, dozwolona maksymalna prędkość: 56.00 [m/s]. / Movement speed taken from the GPS transmitter - unit [m/s], maximum number of decimal places allowed: 2, maximum allowed speed: 56.00 [m/s].",
				"type": "number",
				"minimum": 0.0,
				"maximum": 56.0,
				"multipleOf": 0.01,
				"examples": [3.21, 20.0]
			},
			"acc": {
				"description": "Dokładność lokalizacji pobrana z nadajnika GPS - promień okręgu w metrach, dozwolona maksymalna liczba miejsc po przecinku: 2. / Location accuracy taken from the GPS transmitter - circle radius in meters, maximum number of decimal places allowed: 2.",
				"type": "number",
				"minimum": 0.0,
				"multipleOf": 0.01,
				"examples": [10.14, 30.0]
			},
			"brg": {
				"description": "Azymut - jednostka [stopień], dozwolona maksymalna liczba miejsc po przecinku: 2. /  Azimuth - unit [grade], maximum number of decimal places allowed: 2.",
				"type": "number",
				"minimum": 0.0,
				"maximum": 360.0,
				"multipleOf": 0.01,
				"examples": [40.14, 230.0]
			}
		},
		"additionalProperties": false,
		"required": ["brg", "dev", "lat", "lon", "spd", "acc", "tsp"]
	},
	"minItems": 1,
	"maxItems": 500
}
