From 3a1e3c45cbcfd4894b7668da08517951323e9f7d Mon Sep 17 00:00:00 2001 From: frievoe97 Date: Mon, 6 May 2024 11:33:00 +0200 Subject: [PATCH] Added avro file --- contribs/application/src/main/avro/xyt.avsc | 47 +++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 contribs/application/src/main/avro/xyt.avsc diff --git a/contribs/application/src/main/avro/xyt.avsc b/contribs/application/src/main/avro/xyt.avsc new file mode 100644 index 00000000000..0d56d538c99 --- /dev/null +++ b/contribs/application/src/main/avro/xyt.avsc @@ -0,0 +1,47 @@ +{ + "namespace": "org.matsim.application.avro", + "type": "record", + "name": "XYTData", + "fields": [ + { + "name": "crs", + "type": "string", + "doc": "Coordinate reference system" + }, + { + "name": "xCoords", + "doc": "List of x coordinates", + "type": { + "type": "array", + "items": "float" + } + }, + { + "name": "yCoords", + "doc": "List of y coordinates", + "type": { + "type": "array", + "items": "float" + } + }, + { + "name": "timestamps", + "doc": "List of timestamps in seconds", + "type": { + "type": "array", + "items": "int" + } + }, + { + "name": "data", + "doc": "XYT data for each dataset. The key is the name, the data is stored in one chunk of data.", + "type": { + "type": "map", + "values": { + "type": "array", + "items": "float" + } + } + } + ] +} \ No newline at end of file