The mercantile module provides ul(xtile, ytile, zoom) and bounds(xtile, ytile,
zoom) functions that return longitudes and latitudes for XYZ tiles, and a
xy(lon, lat) function that returns spherical mercator x and y coordinates.

Mercantile's command line interface has commands for getting the shapes of Web
Mercator tiles as GeoJSON and getting the tiles that intersect with a GeoJSON
bounding box.
