Did you know ... Search Documentation:
Pack prolog_geo -- README.md

Geospatial support in Prolog


  1. Install SWI-Prolog.
  2. Install the GEOS library:
apt install libgeos-dev     # Debian, Ubuntu
dnf install geos geos-devel # Fedora, Red Hat


Install this library:

swipl -g 'pack_install(prolog_geo)' -t halt


Once installed, modules from this library are loaded as follows:

?- [library(geo)].

Predicates defined in the loaded modules can now be used:

?- geo_property(Property).
Property = geos_version('3.7.2-CAPI-1.11.2 b55d2125').