Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A Thenmap API wrapper

Project Description

A simple wrapper for the Thenmap API.

Installing

pip install thenmap

Using

>>> 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.

Changelog

  • 1.1.0 - Always get features from only one date. Default to current date - Add Dataset.info method - Make Python3.x compatible
  • 1.0.1 - Fixed import bug
  • 1.0.0 - First working version
Release History

Release History

This version
History Node

1.1.0

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
thenmap-1.1.0.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting