17.10 - SphericalDistance Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Geospatial Data Types

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1181-171K
Language
English (United States)
SYSSPATIAL.SphericalDistance ( lat1, lon1, lat2, lon2 )

Syntax Elements

lat1, lon1
The latitude and longitude of the first point on the planet.

The data type of lat1 and lon1 is FLOAT.

lat2, lon2
The latitude and longitude of the second point on the planet.

The data type of lat2 and lon2 is FLOAT.