Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2
minLevel2
typeflat

...

This operation needs only one argument:

Argument

Data type

More information

String mandatory

string

As said above, the strings must follow the format :type:value

For example:

  • :geohash:78z0

  • :latlon:36°N 20°W

The data type of the new column is geocoord.

...

from my.upload.geolocation.data
select split(message, ";", 1) as geohash_strings

...

We want to parse the strings in the geohash_strings column and transform them to data type geocoord. First, we must format the strings using the format required in the Parse geocoord format operation (:type: value).

Step 1: Apply the required format to the geocoord strings 

...

Use the operator select... as...  and add the operation syntax to create the new column. This is the syntax of the Parse geocoord format operation:

  • parsegeo(string)

Example

(warning) Note that you must have uploaded the following CSV file to your Devo domain as explained above to try out this example.

View file
namegeolocation_data.csv

Copy the following LINQ script and try the above example on the my.upload.geolocation.data table.

Code Block
from my.upload.geolocation.data
select split(message, ";", 1) as geohash_strings
select ":geohash:" + geohash_strings as validFormat,
parsegeo(validFormat) as parseGeocoord