object
geospatial
Geospatial predicates over geographic coordinates represented as geographic(Latitude,Longitude).
logtalk_load(geospatial(loader))static, context_switching_calls
Distance unit: Kilometers.
Coordinate ranges: Latitude values must be in the
[-90.0,90.0]range and longitude values in the[-180.0,180.0]range.
Public predicates
distance/4
Computes the distance in kilometers between two coordinates using a selected metric. Supported metrics are haversine, vincenty, and rhumb.
staticdistance(Coordinate1,Coordinate2,Metric,Distance)distance(+compound,+compound,+atom,-float) - zero_or_onedistance/5
Computes the distance between two coordinates using a selected metric and output unit. Supported metrics are haversine, vincenty, and rhumb. Valid Unit argument values are kilometers, meters, miles, and nautical_miles.
staticdistance(Coordinate1,Coordinate2,Metric,Unit,Distance)distance(+compound,+compound,+atom,+atom,-float) - zero_or_onebbox_overlaps/2
True when two bounding boxes have a strict positive-area overlap. Touching only at an edge or corner fails. Antimeridian-crossing bounding boxes are supported.
staticbbox_overlaps(BoundingBox1,BoundingBox2)bbox_overlaps(+compound,+compound) - zero_or_oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)
See also