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
Parameter | Description | Type | Note | Mandatory |
---|---|---|---|---|
company | RTI comanpy key | string | yes | |
vehicle | RTI vehicle key | string | use either vehicle or group parameter | (yes) |
group | RTI group key | string | use either vehicler or group parameter | (yes) |
map_width | map width in pixel or percent | integer/string | default: 400 (pixel) limit: 1024 (Pixel) percent: 100% | no |
map_height | map height in pixel or percent | integer/string | default: 300 (pixel) limit: 768 (pixel) percent: 100% | no |
language | language | string | available languages "deu" = german (default) "gbr" = english "ndl" = netherlands "fra" = french "ita" = italian | no |
watermark_position | watermark position | string | available positions "center" = center "centerleft" = center left "centeright" = center right "topcenter" = top center "bottomcenter" = bottom center "bottomleft" = bottom left "bottomright" = bottom right | no |
reload_seconds | reload time in seconds | integer | between 60 and 86400 | no |
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