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

Simple GEO library based on Redis GEO function

Project Description

GEO Python

Simple GEO library based on Redis GEO commands

From version 3.2, Redis contains a set of very wonderful commands: the GEO commands (

With these commands, we can easily develop LBS or GEO application.

Unfortunately, these features are not in redis-py( released packages, so we can only use its development version.

Get Started

In [1]: from geo_python import Point
In [2]: class MyPoint(Point):
   ...:     __key__ = 'my_point'

In [3]: point = MyPoint.create(120, 40, 'my point 1')
In [4]: MyPoint.query_by_pos(point.longitude, point.latitude)
Out[4]: [<MyPoint __key__:my_point longitude:120.000000894 latitude:39.9999999108 member:my point 1>]

In [5]: MyPoint.query_by_member(point.member)
Out[5]: [<MyPoint __key__:my_point longitude:120.000000894 latitude:39.9999999108 member:my point 1>]

In [6]: point.update(member='my point 2')
In [7]: print point.member
my point 2

In [8]: another_point = MyPoint.get_by_member(point.member)

In [9]: print another_point
<MyPoint __key__:my_point longitude:120.000000894 latitude:39.9999999108 member:my point 2>

In [10]: print MyPoint.dist(point, another_point)

In [11]: point.geo_hash()
Out[11]: 'wxj7d9v2fs0'


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.1.0 (2016-12-30)

  • First release on PyPI.

0.1.1 (2017-01-12)

  • Change the config

0.1.2 (2017-01-12)

  • Fix config error
Release History

Release History

This version
History Node


History Node


History Node


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
geo_python-0.1.2.tar.gz (18.4 kB) Copy SHA256 Checksum SHA256 Source Jan 12, 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