submitAlongPolyline abstract method

SearchSession submitAlongPolyline(
  1. Polyline polyline,
  2. Geometry geometry,
  3. SearchOptions searchOptions,
  4. SearchSessionSearchListener searchListener, {
  5. required String text,
})

Search request that is used to search for a user query along the given polyline inside the given window.

text User query. polyline Polyline to search near; search_session.SearchSession.setSortByDistance is assumed on the first request. geometry Geometry to search near; supported types: point, bounding box, polyline and polygon. Polygon is expected to be a search window: 4 points in outer ring (or 5 if the last point is equal to first) and no inner rings. searchOptions Various additional search parameters, see search_search_options.SearchOptions definition for details. searchListener Listener to handle search result.

Return search_session.SearchSession which allows further searches, cancel and retry. Session should be stored by user or search is automatically cancelled.

Implementation

search_session.SearchSession submitAlongPolyline(
  mapkit_geometry_geometry.Polyline polyline,
  mapkit_geometry_geometry.Geometry geometry,
  search_search_options.SearchOptions searchOptions,
  search_session.SearchSessionSearchListener searchListener, {
  required core.String text,
});