|
Revision 281, 1.4 KB
(checked in by daniel, 21 months ago)
|
|
OpenLS response example template for route
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <xls:XLS version="1.2" |
|---|
| 3 | xmlns:xls="http://www.opengis.net/xls" |
|---|
| 4 | xmlns:gml="http://www.opengis.net/gml" |
|---|
| 5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|---|
| 6 | |
|---|
| 7 | <xls:ResponseHeader sessionID=""/> |
|---|
| 8 | <xls:Response version="1.2" requestID="$request_id$" numberOfResponses="1"> |
|---|
| 9 | <xls:DetermineRouteResponse> |
|---|
| 10 | <xls:RouteSummary> |
|---|
| 11 | <xls:TotalTime>PT13M7.000S</xls:TotalTime> |
|---|
| 12 | <xls:TotalDistance uom="KM" value="14.88" accuracy=""/> |
|---|
| 13 | <xls:BoundingBox srsName="EPSG:4326"> |
|---|
| 14 | <gml:pos dimension="2">40.123 139.456</gml:pos> |
|---|
| 15 | <gml:pos dimension="2">41.234 140.567</gml:pos> |
|---|
| 16 | </xls:BoundingBox> |
|---|
| 17 | </xls:RouteSummary> |
|---|
| 18 | |
|---|
| 19 | <xls:RouteGeometry> |
|---|
| 20 | <gml:LineString srsName="EPSG:4326"> |
|---|
| 21 | $edges:{ e | |
|---|
| 22 | $e.points:{ p | |
|---|
| 23 | <gml:pos dimension="2">$p.x$ $p.y$</gml:pos> |
|---|
| 24 | }$ |
|---|
| 25 | }$ |
|---|
| 26 | </gml:LineString> |
|---|
| 27 | </xls:RouteGeometry> |
|---|
| 28 | |
|---|
| 29 | <xls:RouteInstructionsList xls:lang="eng" format="text/plain"> |
|---|
| 30 | $edges:{ e | |
|---|
| 31 | <xls:RouteInstruction duration="PT12.000S" description=""> |
|---|
| 32 | <xls:Instruction></xls:Instruction> |
|---|
| 33 | <xls:distance uom="KM" value="0.146" accuracy=""/> |
|---|
| 34 | <xls:RouteInstructionGeometry> |
|---|
| 35 | <gml:LineString srsName="EPSG:4326"> |
|---|
| 36 | $e.points:{ p | |
|---|
| 37 | <gml:pos dimension="2">$p.x$ $p.y$</gml:pos> |
|---|
| 38 | }$ |
|---|
| 39 | </gml:LineString> |
|---|
| 40 | </xls:RouteInstructionGeometry> |
|---|
| 41 | </xls:RouteInstruction> |
|---|
| 42 | }$ |
|---|
| 43 | </xls:RouteInstructionsList> |
|---|
| 44 | </xls:DetermineRouteResponse> |
|---|
| 45 | </xls:Response> |
|---|
| 46 | </xls:XLS> |
|---|
| 47 | |
|---|