get_map.php

Last modified by YellowFox_RD on 2024/12/19 10:11

Table of Contents

Returns a map with requested vehicle or group.

Description

GET get_map.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&language=gbr&map_width=400&map_height=300&watermark_position=center

Parameters

ParameterDescriptionTypeNoteMandatory
companyRTI comanpy keystringyes
vehicleRTI vehicle keystringuse either vehicle or group parameter(yes)
groupRTI group keystringuse either vehicler or group parameter(yes)
map_widthmap width in pixel or percentinteger/stringdefault: 400 (pixel)
limit: 1024 (Pixel)
percent: 100%
no
map_heightmap height in pixel or percentinteger/stringdefault: 300 (pixel)
limit: 768 (pixel)
percent: 100%
no
languagelanguagestringavailable languages
"deu" = german (default)
"gbr" = english
"ndl" = netherlands
"fra" = french
"ita" = italian
no
watermark_positionwatermark positionstringavailable positions
"center" = center
"centerleft" = center left
"centeright" = center right
"topcenter" = top center
"bottomcenter" = bottom center
"bottomleft" = bottom left
"bottomright" = bottom right
no
reload_secondsreload time in secondsintegerbetween 60 and 86400no

Return

Return a HTML page showing the map with requested vehicle or group icons. On error return string "ERROR:Description".

Example calls

Map with current vehicle position
https://map.yellowfox.de/rti/get_map.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY 

https:
//map.yellowfox.de/rti/get_map.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}

Map with group in 1024 x 768 px and english labels
https://map.yellowfox.de/rti/get_map.php?company=COMPANY_RTIKEY&group=GROUP_RTIKEY&map_width=1024&map_height=768&language=gbr 

map with differnet watermark position in full screen mode
https://map.yellowfox.de/rti/get_map.php?company=COMPANY_RTIKEY&group=GROUP_RTIKEY&map_width=100%&map_height=100%&watermark_position=bottomright