{"id":79,"date":"2020-05-12T09:08:14","date_gmt":"2020-05-12T07:08:14","guid":{"rendered":"http:\/\/wiki.hogs.live\/?page_id=79"},"modified":"2020-07-02T14:47:58","modified_gmt":"2020-07-02T12:47:58","slug":"parametry-glowne","status":"publish","type":"page","link":"https:\/\/wiki.hogs.live\/en\/parametry-glowne\/","title":{"rendered":"Main parameters"},"content":{"rendered":"<p class=\" translation-block\">Use GET method to send parameters to the iframe. Authentication token known as <strong>authToken<\/strong> is the most important parameter that allows the use of the iframe. The token can be aquired by loging in via API: <a href=\"http:\/\/wiki.hogs.live\/autoryzacja-2\/\" target=\"_self\">http:\/\/wiki.hogs.live\/autoryzacja-2\/<\/a><\/p>\n\n\n\n<p class=\" translation-block\"><strong>Mode<\/strong> parameter defines the mode in which iframe can be started i.e. what functions are offered, ex. <strong>mode= calculateRoute<\/strong> means route plotting mode. <strong>Options<\/strong> ia a supplementary mode that contains all information needed to aquired specified behaviour ex. parameters characteristic for route.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p> <code>&lt;iframe src=\"https:\/\/iframe.hogs.live\/?authToken=&lt;authToken&gt;&amp;mode=&lt;mode&gt;&amp;options=&lt;options&gt;\"&gt;&lt;\/iframe&gt; <\/code><\/p><\/blockquote>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Comments<\/strong><\/td><\/tr><tr><td>authToken<\/td><td> string <\/td><td> authorisation token <\/td><\/tr><tr><td> mode <\/td><td> string <\/td><td>Parameter that defines how iframe will be started ex. route plotting mode <\/td><\/tr><tr><td> options <\/td><td> string <\/td><td> JSON in text format containing map mode settings. <\/td><\/tr><tr><td> centerMap <\/td><td> {&#8222;lng&#8221;: string | number, &#8222;lat&#8221;:string | number} <\/td><td>Coordinates that define where the map will be centered, ex. {\u201elng\u201d:\u201d9.99183\u2033,\u201dlat\u201d:\u201d53.55375\u2033}. Optional parameter.<\/td><\/tr><tr><td> zoom <\/td><td> number <\/td><td>Zoom value when loading the map, ex. 12. Optional parameter. <\/td><\/tr><tr><td>lang<\/td><td> ENG&nbsp;|&nbsp;DEU&nbsp;|&nbsp;CZE&nbsp;|&nbsp;ESP&nbsp;|&nbsp;FRA&nbsp;|&nbsp;POL&nbsp;|&nbsp;RUS&nbsp;|&nbsp;UKR <\/td><td>Application language. Default value: ENG. <\/td><\/tr><\/tbody><\/table>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>W celu przekazania informacji do iframe&#8217;a nale\u017cy przekaza\u0107 parametry za pomoc\u0105 metody GET. Najwa\u017cniejszym parametrem pozwalaj\u0105cym na korzystanie z iframe&#8217;a jest authToken, czyli token uwierzytelniaj\u0105cy. Token nale\u017cy uzyska\u0107 w drodze logowania poprzez API: http:\/\/wiki.hogs.live\/autoryzacja-2\/. Parametr mode definiuje, w jakim trybie ma zosta\u0107 uruchomiony iframe, tzn. jakie funkcjonalno\u015bci ma oferowa\u0107, np. mode= calculateRoute b\u0119dzie oznacza\u0142 tryb ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.hogs.live\/en\/parametry-glowne\/\" title=\"read more...\">Read more<\/a><\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/pages\/79"}],"collection":[{"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":5,"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/pages\/79\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/pages\/79\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/wiki.hogs.live\/en\/wp-json\/wp\/v2\/media?parent=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}