A Thenmap API wrapper
Project description
A simple wrapper for the Thenmap API.
Installing
pip install thenmap
Installing
>>> from thenmap import Thenmap
>>> api = Thenmap()
>>> swedish_municipalities = api["se-7"]
>>> swedish_municipalities.geojson # defaults to current local date
{{u'crs': {u'type': u'name', ...}
>>> swedish_municipalities.date = "1975-05-03"
>>> swedish_municipalities.geojson
{{u'crs': {u'type': u'name', ...}
>>> swedish_municipalities.in_which("13.46,59.38")
1780
For more fine grained controll over the return geodata use the method get_geodata:
>>> swedish_municipalities.get_geodata(date="1975-05-03", format="topojson") {{u'crs': {u'type': u'name', ...}
See http://thenmap.net for more info on the API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thenmap-1.0.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for thenmap-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8648d74869106543c0a7415858731f0598734f945a460ae7dcb41813ef218bdb |
|
MD5 | c7ee3f1a16b8c03ebe633090bd59a038 |
|
BLAKE2b-256 | b7fe6bb861a33e5d1bbb745247a5aefa8681e6eaba86107a984e20c26fdbe13b |