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!

Reusable Django App for determining timezone by geo coordinates

Project Description

Geo timezones is a simple Django app to determine timezone by geographic coordinates.

Quick start

  1. Add “geo_timezones” to your INSTALLED_APPS settings like this:

    INSTALLED_APPS = (
        ...
        'geo_timezones',
        ...
    )
    
  2. Download SHP TZ_DATA file from http://efele.net/maps/tz/world/.

  3. Run python manage.py migrate to create the timezones models.

  4. Run python manage.py geo_timezones_update –shp_filename=<your shp tz_data file> to update timezones.

  5. Use app in your code:

    ...
    from geo_timezones import get_timezone_name_by_coordinates
    ...
    
    timezone_name = get_timezone_name_by_coordinates(55.3424, 61.0034)  # lat, long
    
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1

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
django-geo-timezones-0.1.2.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Oct 7, 2015

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