The geocode data type contains the longitude and latitude values that represent a geocode property.
Note that all distances are expressed in kilometers.
RETURN Result AS
SELECT
LATITUDE(geo) AS Lat,
LONGITUDE(geo) AS Lon,
DISTANCE(geo, TO_GEOCODE(42.37, 71.13)) AS DistanceFromCambridge
FROM ProductState
WHERE DISTANCE(geo, TO_GEOCODE(42.37, 71.13)) BETWEEN 1 AND 10
Note:
All distances are expressed in kilometers.