hubermedia documentation 2015 html
Samples
Sample 1: Xml

http://meta.et4.de/rest.ashx/routing/?template=ET2014A.xml&experience=demo-dahoam&provider=hiking&slat=49.259135&slon=12.970268&dlat=49.255676&dlon=12.973272 

response
Copy Code
<result xmlns="http://meta.et4.de/ET2014A">
    <status>OK</status>
    <count>1</count>
    <overallcount>0</overallcount>
    <items>
        <item>
            <global_id>8DE381BC4BF28D46C3C42B24B76AE764</global_id>
            <type>Tour</type>
            <categories>
                <category>Route</category>
            </categories>
            <texts>
                <text rel="details" type="text/html">
                    <style type="text/css"> .routing-description { font-family: Helvetica, Arial, sans-serif; max-width: 480px; } .routing-description h2 { font-size: 110%; } .routing-description ul.info { list-style: none; margin: 0; padding: 0; } .routing-description ul.info .label { float: left; } .routing-description ul.info .value { float: right; } </style><div class="routing-description"><h2>Angaben zur Route</h2><ul class="info"><li><div class="label">Länge</div><div class="value">0.52 km</div><div style="clear:both"></div></li><li><div class="label">Dauer</div><div class="value">6 min.</div><div style="clear:both"></div></li></ul><h2>Teilabschnitt 1</h2><ul class="steps"><li>Geradeaus auf Marktstraße, St 2154</li><li>Geradeaus auf Marktplatz, St 2154</li><li>Geradeaus auf Walching, St 2154</li><li>Ziel erreicht!</li></ul></div>
                </text>
            </texts>
            <geo>
                <main latitude="49.259130000000006" longitude="12.970310000000001"/>
                <geometry>
                    49.25913 12.97031 49.25905 12.97032 49.2586 12.9703 49.2585 12.97025 49.25821 12.97001 49.25787 12.96985 49.25762 12.96985 49.25748 12.96993 49.25739 12.97005 49.25719 12.97065 49.25709 12.97121 49.25705 12.97138 49.25698 12.97156 49.25681 12.97177 49.25652 12.97197 49.25609 12.97253 49.25566 12.97317 49.25564 12.97322
                </geometry>
            </geo>
            <media_objects>
                <media_object rel="default" url="http://ecmaps.de/images/api/route.png" type="image/jpeg"/>
            </media_objects>
            <created>0001-01-01T00:00:00Z</created>
            <changed>0001-01-01T00:00:00Z</changed>
            <duration>360</duration>
            <length>520</length>
            <subitems>
                <subitem>
                    <title>Abschnitt 1 (A - B)</title>
                    <type>routing-leg</type>
                    <geo>
                        <main latitude="49.25913" longitude="12.97031"/>
                    </geo>
                    <numbers>
                        <number type="distance">520.29</number>
                        <number type="duration">373</number>
                    </numbers>
                    <instructions>
                        <instruction action="Continue" lat="49.25913" lon="12.97031" distance="9.475" time="6">Geradeaus auf Marktstraße, St 2154</instruction>
                        <instruction action="Continue" lat="49.25905" lon="12.97032" distance="99.695" time="71">Geradeaus auf Marktplatz, St 2154</instruction>
                        <instruction action="Continue" lat="49.25821" lon="12.97001" distance="411.12" time="296">Geradeaus auf Walching, St 2154</instruction>
                        <instruction action="Arrive" lat="49.25564" lon="12.97322" distance="0" time="0">Ziel erreicht!</instruction>
                    </instructions>
                </subitem>
            </subitems>
        </item>
    </items>
</result>
Sample 1: Json

http://meta.et4.de/rest.ashx/routing/?template=ET2014A.json&experience=demo-dahoam&provider=hiking&slat=49.259135&slon=12.970268&dlat=49.255676&dlon=12.973272&wp=49.257155,12.968953 

response
Copy Code
{"status":"OK","count":1,"overallcount":0,"channels":[],"facetGroups":[],"items":[{"global_id":"8DE381BC4BF28D46C3C42B24B76AE764","type":"Tour","categories":["Route"],"texts":[{"rel":"details","type":"text/html","value":"<style type=\"text/css\">\n\t\t\t.routing-description {\n\t\t\t\tfont-family: Helvetica, Arial, sans-serif;\n\t\t\t\tmax-width: 480px;\n\t\t\t}\n\t\t\t\n\t\t\t.routing-description h2 {\n\t\t\t\tfont-size: 110%;\n\t\t\t}\n\t\t\t\n\t\t\t.routing-description ul.info {\n\t\t\t\tlist-style: none;\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\t\n\t\t\t.routing-description ul.info .label {\n\t\t\t\tfloat: left;\n\t\t\t}\n\t\t\t\n\t\t\t.routing-description ul.info .value {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t</style><div class=\"routing-description\"><h2>Angaben zur Route</h2><ul class=\"info\"><li><div class=\"label\">Länge</div><div class=\"value\">0.66 km</div><div style=\"clear:both\"></div></li><li><div class=\"label\">Dauer</div><div class=\"value\">8 min.</div><div style=\"clear:both\"></div></li></ul><h2>Teilabschnitt 1</h2><ul class=\"steps\"><li>Geradeaus auf Marktstraße, St 2154</li><li>Geradeaus auf Marktplatz, St 2154</li><li>Rechts abbiegen auf Hohenbogenstraße</li><li>Zwischenziel 1</li><li>Geradeaus auf Hohenbogenstraße</li><li>Links abbiegen auf Baderplatz</li><li>Rechts abbiegen auf Walching, St 2154</li><li>Ziel erreicht!</li></ul></div>"}],"areas":[],"geo":{"main":{"latitude":49.259130000000006,"longitude":12.970310000000001},"entry":[],"geometry":{"value":"49.25913 12.97031 49.25905 12.97032 49.2586 12.9703 49.2585 12.97025 49.25821 12.97001 49.25821 12.96981 49.2582 12.96969 49.25816 12.96957 49.25806 12.9694 49.25798 12.96932 49.2574 12.96902 49.25728 12.96899 49.25722 12.96899 49.25717 12.96902 49.25717 12.96902 49.25715 12.96903 49.25716 12.9698 49.25722 12.97009 49.25734 12.97023 49.25719 12.97065 49.25709 12.97121 49.25705 12.97138 49.25698 12.97156 49.25681 12.97177 49.25652 12.97197 49.25609 12.97253 49.25566 12.97317 49.25564 12.97322"}},"ratings":[],"cuisine_types":[],"payment":[],"media_objects":[{"rel":"default","url":"http://ecmaps.de/images/api/route.png","type":"image/jpeg"}],"keywords":[],"timeIntervals":[],"numbers":[],"attributes":[],"features":[],"addresses":[],"created":null,"changed":null,"duration":480.0,"length":660,"seasons":[],"subitems":[{"title":"Abschnitt 1 (A - B)","type":"routing-leg","geo":{"main":{"latitude":49.25913,"longitude":12.97031},"entry":[]},"categories":[],"features":[],"texts":[],"ratings":[],"media_objects":[],"keywords":[],"numbers":[{"type":"distance","value":264.83299999999997},{"type":"duration","value":189.0}],"attributes":[],"instructions":[{"action":"Continue","lat":49.25913,"lon":12.97031,"distance":9.475,"time":6,"value":"Geradeaus auf Marktstraße, St 2154"},{"action":"Continue","lat":49.25905,"lon":12.97032,"distance":99.695,"time":71,"value":"Geradeaus auf Marktplatz, St 2154"},{"action":"TurnRight","lat":49.25821,"lon":12.97001,"distance":155.663,"time":112,"value":"Rechts abbiegen auf Hohenbogenstraße"},{"action":"Arrive","lat":49.25717,"lon":12.96902,"distance":0.0,"time":0,"value":"Zwischenziel 1"}]},{"title":"Abschnitt 2 (B - C)","type":"routing-leg","geo":{"main":{"latitude":49.25717,"longitude":12.96902},"entry":[]},"categories":[],"features":[],"texts":[],"ratings":[],"media_objects":[],"keywords":[],"numbers":[{"type":"distance","value":395.41700000000003},{"type":"duration","value":283.0}],"attributes":[],"instructions":[{"action":"Continue","lat":49.25717,"lon":12.96902,"distance":2.286,"time":1,"value":"Geradeaus auf Hohenbogenstraße"},{"action":"TurnLeft","lat":49.25715,"lon":12.96903,"distance":94.329,"time":67,"value":"Links abbiegen auf Baderplatz"},{"action":"TurnRight","lat":49.25734,"lon":12.97023,"distance":298.802,"time":215,"value":"Rechts abbiegen auf Walching, St 2154"},{"action":"Arrive","lat":49.25564,"lon":12.97322,"distance":0.0,"time":0,"value":"Ziel erreicht!"}]}],"hyperObjects":[]}]}

Check out more samples at our API-Explorer: http://developer.et4.de/explorer/?samples=true

 

 


© hubermedia 2018 Privacy Statement Imprint