Previously I wrote about importing data table schemas, relations and data objects to Backendless with CSV files. The data import feature can also work with the geolocation storage. The process is extremely simple – browse to a CSV file with the geolocation data and let Backendless process it. A file you import may include as many geopoints as you need. For each geopoint you can provide the latitude and longitude coordinates, the categories the data point should belong to and the geopoint metadata. Consider the following example of a geolocation CSV file:
[table “” not found /]
Geolocation CSV files must follow the following structure:
- latitude column
- longitude column
- category names. The entire string must enclosed into double quotes. Category names must separated by commas.
- metadata in the key=value format. Multiple key/value pairs must be separated with the pipe character – |
- Login to Backendless console, select your app and click the Manage icon.
- Click the Import menu.
- Click the add file button for the Geo Service section.
- Browse and open a CSV file with the geolocation data
Once Backendless completes the import of the data, it sends an email to the application developer email address with a status report about the import procedure. If all the data is successfully processed, you can see it in the geolocation screen of Backendless console. For example, the data from the table shown above is rendered as: