Skip to content

Get Geopoint Count

Method:

Future<int> Backendless.geo.getGeopointCount(BackendlessGeoQuery query, [String geoFenceName]);

where:

Argument                Description
query a query object encapsulating the search parameters.
geofenceName name of a geofence, which monitors the device's location.

Return Value

A number of GeoPoint objects matching the search query.

Example

BackendlessGeoQuery geoQuery = BackendlessGeoQuery()
  ..categories = ["mycategory", "restaurants"];

Backendless.geo.getGeopointCount(geoQuery).then((count) {
  print("Geo point count: $count");
});