从lat/long脱机查找时区的python库
tzwhere的Python项目详细描述
皮兹在哪[![构建状态](https://travis ci.org/pegler/pytzwhere.svg)(https://travis-ci.org/pegler/pytzwhere)[![覆盖状态](https://coveralls.io/repos/pegler/pytzwhere/badge.svg)](https://coveralls.io/r/pegler/pytzwhere)
===
pytzwhere是一个python库,用于在完全脱机的情况下查找给定lat/lng的时区。
3.0版修复了时区中“pytzwhere”如何处理[洞](https://github.com/pegler/pytzwhere/issues/34)。建议您使用3.0版。
它是https://github.com/mattbornski/tzwhere的一个端口,有一些改进。基本时区数据基于[Eric Muller]所做的工作(http://efele.net/maps/tz/world/)
如果用作库,基本用法如下:
>>;>;from tzwhere import tzwhere
>;>;tz=tzwhere.tzwhere()
>;>;print tz.tznameat(35.29,-89.66)
美国/芝加哥
用于建立时区的多边形基于vmap0。有时点位于vmap0多边形之外,但显然位于某个时区内(另请参见本[讨论](https://github.com/mattbornski/tzwhere/issues/8))。作为一种解决方案,您可以在用户定义的半径内搜索最近的时区。
依赖项:
*`numpy`(可选)
*`shapely`
===
pytzwhere是一个python库,用于在完全脱机的情况下查找给定lat/lng的时区。
3.0版修复了时区中“pytzwhere”如何处理[洞](https://github.com/pegler/pytzwhere/issues/34)。建议您使用3.0版。
它是https://github.com/mattbornski/tzwhere的一个端口,有一些改进。基本时区数据基于[Eric Muller]所做的工作(http://efele.net/maps/tz/world/)
如果用作库,基本用法如下:
>>;>;from tzwhere import tzwhere
>;>;tz=tzwhere.tzwhere()
>;>;print tz.tznameat(35.29,-89.66)
美国/芝加哥
用于建立时区的多边形基于vmap0。有时点位于vmap0多边形之外,但显然位于某个时区内(另请参见本[讨论](https://github.com/mattbornski/tzwhere/issues/8))。作为一种解决方案,您可以在用户定义的半径内搜索最近的时区。
依赖项:
*`numpy`(可选)
*`shapely`