geography — a reasoning module

Regions, maps and places reasoned over, and the Earth calculated, as a DKE Python module you compile into your own store. You record regions with the region each lies in, borders, the colours a map gives, and places and boxes by latitude and longitude; it concludes every region a region lies within, how many of each level it holds, which neighbours share a colour, and which places lie in a box, across the antimeridian too, withdrawing each answer when you correct the fact it rests on. It colours a map, and calculates distances, bearings and destinations on the sphere and on the WGS84 ellipsoid, the Mercator projection and the area of a spherical triangle.

Licence: MIT. Current version: 1.0.2, released in rev 145.

Get it

The whole release, as one archive:

curl -O https://dke.langsyn.com/source/geography/1.0.2/geography-1.0.2.tar.gz

Its SHA-256: e3009343f0b17b911941fde958f8f95c2fbc0429e3d1c17e36717ee3bcbe0579.

Or browse version 1.0.2 file by file. /source/geography/latest/ always redirects to the current version. A release's files never change. When the next release supersedes this one, this version stays served at its URL, marked superseded, so cite the version and the archive's digest to say exactly which bytes you read, and use latest for a link that follows each new release.

Current release