Convert from Ontology GeoPoint

Supported in: Batch, Streaming

Convert an Ontology GeoPoint into a regular GeoPoint. Ontology GeoPoints are strings of the format '{lat},{lon}', where -90 <= lat <= 90 and -180 <= lon <= 180. Regular GeoPoints are structures of the format {"longitude": {long},"latitude": {lat}}.

Expression categories: Geospatial

Declared arguments

  • Expression - Ontology GeoPoint to convert.
    Expression<Ontology GeoPoint>

Output type: GeoPoint

Examples

Example 1: Base case

Argument values:

  • Expression: geopoint
geopointOutput
-20.0000000,80.0000000{
latitude: -20.0,
longitude: 80.0,
}
38.9031000,-77.0599000{
latitude: 38.9031,
longitude: -77.0599,
}
41.9876543,-99.1234568{
latitude: 41.9876543,
longitude: -99.1234568,
}

Example 2: Null case

Argument values:

  • Expression: geopoint
geopointOutput
38.9031000, 41.9876543, 80.0000000null
A, 41.9876543null
this is a, test stringnull
nullnull