The JSON files in this project are organized in a structured folder system to manage various regions, platforms, and transport types.
If anyone would like to add data, please do so on the project website. In the future, this data will also be managed directly in a database.
- general/: Contains general files like
transport_types.json
andplatforms.json
, which are applicable to all regions and projects. - europe/: Contains country-specific files like
germany.json
,france.json
, etc., to bundle regional data. - worldwide/: Contains just the file
worldwide.json
for offers in one or more continents.
(It is allowed to add more countries and continents!)
The transport_types.json
file defines the supported transport types:
- Key: Defines the transport type, e.g.,
"train"
. - Multilingual Values: Each key contains labels in different languages.
{
"train": {
"de": "Zug",
"en": "Train",
"fr": "Train",
"es": "Tren"
}
}
Remember: The goal is to save CO2- don't add flight
here!
The country data is organized in a JSON array:
- name: The name of the app or platform.
- description: Short description of the app and its function.
- type: Array of transport types (refer to
transport_types.json
). - platform: Array of available platforms, defined in
platforms.json
. - location: Contains information on the country and region.
[
{
"name": "DB Navigator",
"description": "Public transport app covering trains, subways, and buses in Germany and Europe.",
"type": ["train", "high_speed_train", "bus"],
"platform": ["ios", "android", "website"],
"website": "https://www.bahn.com/",
"location": {
"country": "Germany",
"region": "All",
"coordinates": [10.4515, 51.1657]
}
}
]
The file europe.json
is for companies / apps that work in all or more than one countries in europe.