List of all ferry segments

Data which is used in a more general manner can be requested by xData service. Therefore this data is not provided by one of the other functional services, but concentrated in an own independent service.
Attention: this is not the platform for the data itself. If you have questions about missing data or the handling of binary maps please look at Data and Content.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2860
Joined: Mon Apr 14, 2014 10:28 am
Contact:

List of all ferry segments

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply