Changeset 281 for tools

Show
Ignore:
Timestamp:
03/12/09 17:33:36 (12 months ago)
Author:
daniel
Message:

OpenLS response example template for route

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/routingservice/trunk/templates/route/route_xls.st

    r279 r281  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <XLS 
    3         xmlns:xls="http://www.opengis.net/xls" 
     2<xls:XLS version="1.2" 
     3        xmlns:xls="http://www.opengis.net/xls"  
    44        xmlns:gml="http://www.opengis.net/gml"  
    5         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    6         xsi:schemaLocation="http://www.opengis.net/xls RouteService.xsd" 
    7         version="1.2" xsi:lang="En">     
    8         <ResponseHeader /> 
    9         <Response requestID="$e.id$"> 
    10                 <DetermineRouteResponse> 
    11                          
    12                         <!-- Route Summary --> 
    13                         <RouteSummary> 
    14                                 <TotalTime>PT0H16M</TotalTime> 
    15                                 <TotalDistance uom="KM" value="3.1"/> 
    16                                 <!--BoundingBox srsName="EPSG:4326"> 
    17                                         <gml:pos dimension="2">7.0804518 50.7321509</gml:pos> 
    18                                         <gml:pos dimension="2">7.1049858 50.7476631</gml:pos> 
    19                                 </BoundingBox--> 
    20                         </RouteSummary> 
    21                          
    22                         <!-- Route Geometry --> 
    23                         <RouteGeometry> 
     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> 
    2420                                <gml:LineString srsName="EPSG:4326"> 
    2521$edges:{ e | 
     
    2925}$ 
    3026                                </gml:LineString> 
    31                         </RouteGeometry> 
    32                          
    33                         <!-- Route Instructions --> 
    34                         <RouteInstructionsList xls:lang="En"> 
     27                        </xls:RouteGeometry> 
     28 
     29                        <xls:RouteInstructionsList xls:lang="eng" format="text/plain"> 
    3530$edges:{ e | 
    36                                 <RouteInstruction duration="PT0S" description="Overview"> 
    37                                         <Instruction>Detailed instruction</Instruction> 
    38                                         <distance value="1.5" uom="KM"/> 
    39                                         <RouteInstructionGeometry> 
     31                                <xls:RouteInstruction duration="PT12.000S" description=""> 
     32                                        <xls:Instruction></xls:Instruction> 
     33                                        <xls:distance uom="KM" value="0.146" accuracy=""/> 
     34                                        <xls:RouteInstructionGeometry> 
    4035                                                <gml:LineString srsName="EPSG:4326"> 
    4136                $e.points:{ p |  
     
    4338                }$ 
    4439                                                </gml:LineString> 
    45                                         <RouteInstructionGeometry> 
    46                                 <RouteInstruction> 
     40                                        </xls:RouteInstructionGeometry> 
     41                                </xls:RouteInstruction> 
    4742}$ 
    48                         <RouteInstructionsList> 
    49                 <DetermineRouteResponse> 
    50         <Response> 
    51 <XLS> 
     43                        </xls:RouteInstructionsList> 
     44                </xls:DetermineRouteResponse> 
     45        </xls:Response> 
     46</xls:XLS> 
     47