here's a little challenge from a partner who tried to locate a large number of ferries within a map.
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.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?
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))"
}
}