Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 36: Saving a data object with a related geolocation
February 12, 2015 by markpiller
Spread the love

This is a brand new feature from the release we just announced and it is a powerful one I think the potential of mapping a location to a data object can lead to a lot of interesting opportunities. For example, consider a taxi booking service like Uber. You may have multiple cars/drivers available for hire as well as customers putting pickup requests. Both drivers and customers may be represented by corresponding data objects and locations on the map.

Consider the following example:

Synchronous API sample (Plain Java only):

Asynchronous API sample (Plain Java and Android):

Driver class:

Asynchronous API sample:

Synchronous API sample:

Driver class:

Asynchronous API sample:

Synchronous API sample:

If you run both functions and navigate to Backendless console, you will see the following in the Data screen:
data objects with geo - Feature 36: Saving a data object with a related geolocation

Notice the “location” property/column contains a hyperlink with the coordinates of the geopoint linked to the data object. If you click the link for the first data object (Jen Buttons driving the Diablo), you will see the following:
geo point linked to data object - Feature 36: Saving a data object with a related geolocation

The console shows the geopoint linked to the data object. The geopoint is displayed with its metadata (see the table) and the plotting on the map. This makes it very convenient for diagnosing data relations and instrumenting your backend storage.

There are many more very interesting features we added into the data-geo integration and I can’t wait to describe them all in the near future.

Enjoy!

Share this post
Tweet about this on TwitterShare on FacebookGoogle+