Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-geo-timezones

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-geo-timezones

Reusable Django App for determining timezone by geo coordinates

  • 0.1.2
  • PyPI
  • Socket score

Maintainers
1

============= Geo Timezones

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc