GeoService is acknowledged to be the most powerful features of Backendless. The geolocation service provides APIs for storing, searching and managing geolocation data. There are three main elements which the geo-location service operates on: geo categories, geo points and points metadata. A geopoint contains a pair of coordinates: latitude and longitude. Additionally, a geo point may contain metadata - an arbitrary collection of key/value properties.
Finally, an application may group points in a category logically or otherwise. For example, the "Restaurants" category may contain geo points representing various restaurants in a geographic area. Every geo point could have the metadata properties such as "atmosphere", "cuisine" with the values describing the atmosphere at the restaurant and the type of food served.
The GeoService includes a variety of APIs to add and update geopoints, run searches in a rectangular or circular areas on a map and many other functions.
The best way to start with the Geo Service is setting up sample geodata and Backendless Console makes it trivially easy. The sample data includes a geocategory with points identifying various cities around the globe. Each point includes metadata with the name of the city.
To set up sample data:
- Login to Backendless Console, select an app and click the Geolocation icon.
- Click the Setup Sample Data button.
- Console displays a popup confirming your choice. Click Yes to confirm.
- Once the sample data is added, it can be immediately seen in console:
It is possible also to try changing the zoom of the map, click geopoints on the map or in the table.