corridorArea property
Geographic corridor area in which to provide the most relevant places. The contained polyline and half-width define the area that will be used in a search query.
When used with SearchEngine, the polyline is compressed and sent. More complex polylines with large amounts of coordinates and with smaller half-width may have the less relevant part removed, such as the one far away from the search center. This usually makes no difference, because there will be enough POIs near the search center. For use cases where it is important to search the entire polyline, half-width can be increased or not set. For example: Route between New York and Chicago with half-width 800 will be added to request without removing the far away part, but route of the same length (around 360km) between Milan (Italy) and Konstanz (Germany) will have the far away part removed due to its complexity.
When TextQueryArea.corridorArea is provided, TextQueryArea.areaCenter has to be within it, otherwise TextQueryArea.areaCenter is ignored when searching.
For Offline Search, search in a given GeoCorridor restricts the results to only POIs.
Implementation
final GeoCorridor? corridorArea;