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
Add “geo_timezones” to your INSTALLED_APPS settings like this:
INSTALLED_APPS = ( ... 'geo_timezones', ... )
Download SHP TZ_DATA file from http://efele.net/maps/tz/world/.
Run python manage.py migrate to create the timezones models.
Run python manage.py geo_timezones_update –shp_filename=<your shp tz_data file> to update timezones.
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
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
File details
Details for the file django-geo-timezones-0.1.2.tar.gz
.
File metadata
- Download URL: django-geo-timezones-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c2842b96f195049c90428999cd4ef1cf2c0964b38c5524cada6580eeba78f45c
|
|
MD5 |
391e17052f7ec644fbe0eb4ede4f32e6
|
|
BLAKE2b-256 |
e3fceeae2da018ef01a3e91efa318c4d45be624f9858705a5310e3765b198bf4
|