Construct GeoPoint column

Supported in: Batch, Streaming

Constructs a GeoPoint column from a latitude and longitude column. Validates that the latitude parameter is between -90 and 90, inclusive, and that the longitude parameter is between -180 and 180, inclusive; if not, returns a null value.

Expression categories: Geospatial

Declared arguments

  • Latitude - Latitude column.
    Expression<Double>
  • Longitude - Longitude column.
    Expression<Double>

Output type: GeoPoint

Examples

Example 1: Base case

Argument values:

  • Latitude: lat
  • Longitude: lon
latlonOutput
32.058.0{
 latitude -> 32.0,
 longitude -> 58.0,
}
320.058.0null