Shows a list of cars which are affected by a RTI request.

Description

GET get_cars.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY

Parameter

ParameterDescriptionTypNoteMandatory
companyRTI company keystring
yes
vehicleRTI vehicle keystringeither vehicle, group or import parameter(yes)
groupRTI group keystringeither vehicle, group or import parameter(yes)
importRTI import keystringeither vehicle, group or import parameter(yes)
formatOutput formatstringcsv or json, default: csvno

Return

Return a string. In case of error it returns "ERROR:Description".

CSV

Meta informations

SeparatorSemicolon ( ; )
DelimiterDouble quote ( " )
Line break0x0D 0x0A (CarriageReturn LineFeed)
HeaderLine 1
EncodingUTF-8

Columns

Column
Description
CARNAMEname of the vehicle
IDENTRTI Ident
COSTCENTERcost center of the vehicle
VEHICLEGROUPSgroup of vehicles
KMCORRECTIONFACTORkm correction factor

Example

Return in CSV
"CARNAME";"IDENT";"COSTCENTER";"VEHICLEGROUPS"
"CAR1";"IDENT1";"COSTCENTER1";"[{"name":"gruppe1"},{"name":"gruppe2"}]";"1"
"CAR2";"IDENT2";"COSTCENTER2";"[{"name":"gruppe1"},{"name":"gruppe2"}]";"1"
"CAR3";"IDENT3";"COSTCENTER3";"[{"name":"gruppe1"},{"name":"gruppe2"}]";"1"
"CAR4";"IDENT4";"COSTCENTER4";"[{"name":"gruppe1"},{"name":"gruppe2"}]";"1"
"CAR5";"IDENT5";"COSTCENTER5";"[{"name":"gruppe1"},{"name":"gruppe2"}]";"1"
"CAR6";"IDENT6";"COSTCENTER6";"[{"name":"gruppe1"},{"name":"gruppe2"}]";"1"

JSON

[
    {
        "vehicle_sign": "FTL YF 123",
        "rti_ident": null,
        "tracking_mode": "IntelligentLocating",
        "tracking_interval": 0,
        "supported_modes": [
            "CourseChange",
            "IntelligentLocating",
            "DistanceInterval",
            "MinuteInterval"
        ],
   	    "vehicle_groups": [
            {
                "name": "gruppe1"
            },
            {
                "name": "gruppe2"
            }
       ],
	   "km_correction":1
       }
]


Example Calls

Name of one vehicle
https://map.yellowfox.de/rti/get_cars.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY

https://map.yellowfox.de/rti/get_cars.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_RTIIDENT"}
Returns all cars of a group
https://map.yellowfox.de/rti/get_cars.php?company=COMPANY_RTIKEY&group=GROUP_RTIKEY
All cars, which are requestable over the RTI
https://map.yellowfox.de/rti/get_cars.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY


  • No labels