LvWS


Click here for a complete list of operations.

GetLinksForSearchConditions

Returns a list of links that match the search conditions.
apiKey - the api key.
searchConditionsXmlString - the search conditions. XSD Example-XML   At least one condition must contain a feature/street name/district/trafficTypes.
  The feature conditions can include one or many different feature types.
  Each feature type condition can have both attribute conditions and an extent specifying condition,
  which is a feature type condition that states that the search will only include the
  features for which the extents overlap the extents for the extent specifying condition.
  An optional trafficTypes condition may be included to limit the result, It is a bitmask, where Car=1, Bicycle=2, Ferry=4, Pedestrian=8, Rescue=16.
  An optional street name condition may be included to limit the result to a specific street. It may contain wildcards (? and *).
  An optional district condition may also be included in the search, as a list of district IDs.
  An optional geometry condition may also be included in the search containing a polygon WKT.
includeWkt - set to true to include WKT geometries for each link in the result.
Response-XSD

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
apiKey:
searchConditionsXmlString:
includeWkt:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /LvWS-2.2/Lv.asmx HTTP/1.1
Host: openstreetws.stockholm.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.astando.se/LvWS/GetLinksForSearchConditions"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetLinksForSearchConditions xmlns="http://www.astando.se/LvWS/">
      <apiKey>string</apiKey>
      <searchConditionsXmlString>string</searchConditionsXmlString>
      <includeWkt>boolean</includeWkt>
    </GetLinksForSearchConditions>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetLinksForSearchConditionsResponse xmlns="http://www.astando.se/LvWS/">
      <GetLinksForSearchConditionsResult>xml</GetLinksForSearchConditionsResult>
    </GetLinksForSearchConditionsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /LvWS-2.2/Lv.asmx HTTP/1.1
Host: openstreetws.stockholm.se
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetLinksForSearchConditions xmlns="http://www.astando.se/LvWS/">
      <apiKey>string</apiKey>
      <searchConditionsXmlString>string</searchConditionsXmlString>
      <includeWkt>boolean</includeWkt>
    </GetLinksForSearchConditions>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetLinksForSearchConditionsResponse xmlns="http://www.astando.se/LvWS/">
      <GetLinksForSearchConditionsResult>xml</GetLinksForSearchConditionsResult>
    </GetLinksForSearchConditionsResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /LvWS-2.2/Lv.asmx/GetLinksForSearchConditions?apiKey=string&searchConditionsXmlString=string&includeWkt=string HTTP/1.1
Host: openstreetws.stockholm.se
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0"?>
xml

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /LvWS-2.2/Lv.asmx/GetLinksForSearchConditions HTTP/1.1
Host: openstreetws.stockholm.se
Content-Type: application/x-www-form-urlencoded
Content-Length: length

apiKey=string&searchConditionsXmlString=string&includeWkt=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0"?>
xml