Sorry, you need to enable JavaScript to visit this website.

Geometry search

Allow your users to perform a free text search inside geometries specified by circles and/or polygons.

Sample use case: You are planing to visit the area of Amsterdam. You need find a parking spot, an ATM, and a grocery store in the city centre in Amsterdam and/or in the west part of the city.

Use the following code to try this in your app:


List<Geometry> geometries = new ArrayList<>();
geometries.add(new Geometry(new PolygonGeometry(DefaultGeometries.POLYGON_POINTS)));
geometries.add(new Geometry(new CircleGeometry(DefaultGeometries.CIRCLE_CENTER, DefaultGeometries.CIRCLE_RADIUS)));
val circleGeometry = createDefaultCircleGeometry()
val polygonGeometry = createDefaultPolygonGeometry()
val geometriesList = listOf(Geometry(circleGeometry), Geometry(polygonGeometry))

val query = GeometrySearchQueryBuilder.create(term, geometriesList)


GeometrySearchQuery query = new GeometrySearchQueryBuilder(term, geometries)

SearchApi searchAPI = OnlineSearchApi.create(context, BuildConfig.SEARCH_API_KEY);
searchAPI.geometrySearch(query, geometrySearchCallback);


Sample views utilizing Geometry Search:


Geometry search with term: Parking


Geometry search with term: ATM