Page 1 of 1

List of all ferry segments

Posted: Mon May 30, 2022 8:11 am
by Bernd Welter
Hi,
here's a little challenge from a partner who tried to locate a large number of ferries within a map.
I am trying to find few ferry segments, but miss a few. I used both SegmentsBySurroundingPolygonRequest and SegmentsByCoordinateRequest.
I was thinking maybe to create a big polyline to get a whole europe list, but my colleague mentioned that there might be some limitations. Would it be possible for you to share a list of all ferry segments or explain to me how it can be done via api request?
FerriesInEurope.png
I simulated his request with a large surrounding rectangle and used some parameters to restrict the results of the XDATA2.SegmentsRequest search to "combined transports only". Applying such a filter is required because we do not return more than 5'000 segments in a response.

Code: Select all

{
  "$type": "SegmentsBySurroundingPolygonRequest",
  "scope": "globalscope",
  "storedProfile": "default",
  "coordinateFormat": "EPSG:4326",
  "geometryOptions": {
    "responseGeometryTypes": [
      "PLAIN",
      "GEOJSON"
    ]
  },
  "resultFields": {
    "polyline": true,
    "descriptors": true,
    "combinedTransport": true
  },
  "segmentsOptions": {
    "includedNetworkClasses": {
      "included": [
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true
      ]
    },
    "includedSegmentTypes": [
      "COMBINED_TRANSPORT"
    ]
  },
  "polygon": {
    "wkt": "Polygon((-10 30,20 30,20 80,-10 80,-10 30))"
  }
}
Bernd