[pyar] geohash

Daniel Britos dbritos en gmail.com
Mie Sep 16 12:32:38 ART 2015


Muchas gracias yo tenia la version de geohash 0.8.3 la cabien a 0.8.5 y
salio andando.

2015-09-16 10:20 GMT-03:00 Juan E. Drucker <juan en unahormiga.com>:

>
>
> 2015-09-16 10:10 GMT-03:00 Daniel Britos <dbritos en gmail.com>:
>
>> Son tres parametros latitud longitud y cantidad de caracteres del hash en
>> este caso 15.
>>
>
> Probando en python 3 con python-geohash==0.8.5 parece funcionar bien
>
> import geohash
> gh=geohash.encode(23, 0.023, 15)
> geohash.decode(gh)
>
> (22.999999999665306, 0.023000000583124347)
>
>
>
>
>>
>> 2015-09-16 9:26 GMT-03:00 Jairo Trad <frodobolsonxx en gmail.com>:
>>
>>> Daniel, no se si sera eso, pero los flotantes van con punto no con coma,
>>> ahí está interpretando como que le pasa 3 parametros a geohash:
>>>
>>> gh = geohash.encode(23, 0.023, 15)
>>>
>>> No se que numero queria poner, pero probando asi con geohash da bien:
>>>
>>> gh = geohash.encode(23.0023, 15)
>>>
>>> Saludos, Jairo
>>>
>>>
>>>
>>> El 15 de septiembre de 2015, 13:48, Daniel Britos <dbritos en gmail.com>
>>> escribió:
>>>
>>>> Estuve probando geohash y me da errores muy grandes.
>>>> gh=geohash.encode(23,0.023,15)
>>>> >>> geohash.decode(gh)
>>>> (22.999999999665306, 6.548361852765083e-10)
>>>>
>>>> La Lat esta bien pero la long el error es mas de un kilometro
>>>> Alguna ayuda?
>>>> --
>>>> Ing. José Daniel Britos
>>>> Director Laboratorio de redes y comunicaciones.
>>>> FCEFyN Universidad Nacional de Córdoba
>>>>
>>>>
>>>> _______________________________________________
>>>> pyar mailing list pyar en python.org.ar
>>>> http://listas.python.org.ar/listinfo/pyar
>>>>
>>>> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>>>>
>>>> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
>>>> Argentina - http://www.usla.org.ar
>>>>
>>>
>>>
>>>
>>> --
>>> Jairo Trad
>>> *Cofundador de Kilimo <http://www.kilimo.com.ar/>*
>>> Tel: 03544-155999933
>>> *Skype: *Jairo.Trad1
>>>
>>> _______________________________________________
>>> pyar mailing list pyar en python.org.ar
>>> http://listas.python.org.ar/listinfo/pyar
>>>
>>> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>>>
>>> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
>>> Argentina - http://www.usla.org.ar
>>>
>>
>>
>>
>> --
>> Ing. José Daniel Britos
>> Director Laboratorio de redes y comunicaciones.
>> FCEFyN Universidad Nacional de Córdoba
>>
>>
>> _______________________________________________
>> pyar mailing list pyar en python.org.ar
>> http://listas.python.org.ar/listinfo/pyar
>>
>> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>>
>> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
>> Argentina - http://www.usla.org.ar
>>
>
>
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
> Argentina - http://www.usla.org.ar
>



-- 
Ing. José Daniel Britos
Director Laboratorio de redes y comunicaciones.
FCEFyN Universidad Nacional de Córdoba
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20150916/71da36a6/attachment.html>


More information about the pyar mailing list