Geometry search playground

Search for places within specific geographic boundaries

View on GitHub
SDK 1.0.0-rc.7

Type what to find and where, and the map leaves its world view for the matches inside that area’s outline.

  • geocodeOne and geometryData turn the second box into a boundary polygon.
  • discoverPlaces takes the free-text query and that polygon together, so the area is part of the query, not a filter over the results.
  • bboxFromGeoJSON reads the extent off that same feature, which is where the re-centre button flies back to.
  • One createLatestRequest run carries all three calls on one signal, so a fresh search or Clear drops the previous chain wherever it got to.

Related examples