| 1 | <?xml version="1.0"?> |
|---|
| 2 | <services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 3 | xsi:noNamespaceSchemaLocation="http://wrs.postlbs.org/xsd/1.1.0/service.xsd"> |
|---|
| 4 | <service name="route" title="Shortest path"> |
|---|
| 5 | <description>Returns a shortest path between points A and B</description> |
|---|
| 6 | <templates> |
|---|
| 7 | <template name="gml" format="xml" url="./data/templates/route/route_gml.st"/> |
|---|
| 8 | <template name="kml" format="xml" url="./data/templates/route/route_kml.st"/> |
|---|
| 9 | <template name="geojson" format="json" url="./data/templates/route/route_geojson.st"/> |
|---|
| 10 | <template name="gpx" format="xml" url="./data/templates/route/route_gpx.st"/> |
|---|
| 11 | <template name="xls" format="xml" url="./data/templates/route/route_xls.st"/> |
|---|
| 12 | <template name="ol" format="html" url="./data/templates/route/route_openlayers.st"/> |
|---|
| 13 | </templates> |
|---|
| 14 | <in> |
|---|
| 15 | <parameter key="startX" type="double" name="x1" /> |
|---|
| 16 | <parameter key="startY" type="double" name="y1" /> |
|---|
| 17 | <parameter key="endX" type="double" name="x2" /> |
|---|
| 18 | <parameter key="endY" type="double" name="y2" /> |
|---|
| 19 | </in> |
|---|
| 20 | <out> |
|---|
| 21 | <parameter name="id" type="integer" key="id" /> |
|---|
| 22 | <parameter name="cost" type="double" key="cost" /> |
|---|
| 23 | <parameter name="line" type="geometry" key="the_geom" /> |
|---|
| 24 | <parameter name="rlength" type="double" key="length" /> |
|---|
| 25 | </out> |
|---|
| 26 | </service> |
|---|
| 27 | <service name="catch" title="Catchment area"> |
|---|
| 28 | <description>Returns a polygon representing a catchment area for going from point A within distance D</description> |
|---|
| 29 | <templates> |
|---|
| 30 | <template name="kml" format="xml" url="./data/templates/catch/catch_kml.st"/> |
|---|
| 31 | <template name="gml" format="xml" url="./data/templates/catch/catch_gml.st"/> |
|---|
| 32 | <template name="ol" format="html" url="./data/templates/catch/catch_openlayers.st"/> |
|---|
| 33 | <template name="geojson" format="json" url="./data/templates/catch/catch_geojson.st"/> |
|---|
| 34 | </templates> |
|---|
| 35 | <in> |
|---|
| 36 | <parameter key="startX" type="double" name="x1" /> |
|---|
| 37 | <parameter key="startY" type="double" name="y1" /> |
|---|
| 38 | <parameter key="distance" type="double" name="distance" /> |
|---|
| 39 | </in> |
|---|
| 40 | <out> |
|---|
| 41 | <parameter name="polygon" type="geometry" key="the_geom" /> |
|---|
| 42 | </out> |
|---|
| 43 | </service> |
|---|
| 44 | <service name="geocode" title="Geocoder"> |
|---|
| 45 | <description>Geocode a point to an address</description> |
|---|
| 46 | <templates> |
|---|
| 47 | <template name="kml" format="xml" url="./data/templates/geocode/geocode_kml.st"/> |
|---|
| 48 | <template name="geojson" format="json" url="./data/templates/geocode/geocode_geojson.st"/> |
|---|
| 49 | <template name="xls" format="xml" url="./data/templates/geocode/geocode_xls.st"/> |
|---|
| 50 | <template name="georss" format="xml" url="./data/templates/geocode/geocode_georss_gml.st"/> |
|---|
| 51 | <template name="ol" format="html" url="./data/templates/geocode/geocode_openlayers.st"/> |
|---|
| 52 | </templates> |
|---|
| 53 | <in> |
|---|
| 54 | <parameter key="address" type="string" name="address" /> |
|---|
| 55 | </in> |
|---|
| 56 | <out> |
|---|
| 57 | <parameter key="point" type="geometry" name="point" /> |
|---|
| 58 | <parameter key="address" type="string" name="address" /> |
|---|
| 59 | <parameter key="precision" type="double" name="precision" /> |
|---|
| 60 | </out> |
|---|
| 61 | </service> |
|---|
| 62 | <service name="locate" title="Locator"> |
|---|
| 63 | <description>Locates an address by the given point</description> |
|---|
| 64 | <templates> |
|---|
| 65 | <template name="kml" format="xml" url="./data/templates/locate/locate_kml.st"/> |
|---|
| 66 | <template name="geojson" format="json" url="./data/templates/locate/locate_geojson.st"/> |
|---|
| 67 | <template name="xls" format="xml" url="./data/templates/locate/locate_xls.st"/> |
|---|
| 68 | </templates> |
|---|
| 69 | <in> |
|---|
| 70 | <parameter key="x1" type="double" name="x1" /> |
|---|
| 71 | <parameter key="y1" type="double" name="y1" /> |
|---|
| 72 | </in> |
|---|
| 73 | <out> |
|---|
| 74 | <parameter key="x1" type="double" name="x1" /> |
|---|
| 75 | <parameter key="y1" type="double" name="y1" /> |
|---|
| 76 | <parameter key="address" type="string" name="address" /> |
|---|
| 77 | <parameter key="precision" type="double" name="precision" /> |
|---|
| 78 | </out> |
|---|
| 79 | </service> |
|---|
| 80 | <service name="capabilities" title="Profile capabilities"> |
|---|
| 81 | <description>Returns JSON object for profile's capabilities</description> |
|---|
| 82 | <templates> |
|---|
| 83 | <template name="json" format="json" url="./data/templates/self/capabilities.st"/> |
|---|
| 84 | </templates> |
|---|
| 85 | <in> |
|---|
| 86 | <parameter key="profile" type="string" name="profile" /> |
|---|
| 87 | </in> |
|---|
| 88 | <out> |
|---|
| 89 | <parameter name="capabilities" type="string" key="capabilities" /> |
|---|
| 90 | </out> |
|---|
| 91 | </service> |
|---|
| 92 | </services> |
|---|