submit abstract method

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

Search request for searching a user query near given geometry.

text User query. geometry Geometry to search near. Supported types: point, bounding box, polyline and polygon. If the polyline is provided, setSortByDistance(polyline) is assumed on the first request. Polygon is expected to be a search window: 4 points in outer ring (or 5 if the last point is equal to the 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.

Implementation

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