Reverse Geocoding Without Web Access

后端 未结 6 1805
南方客
南方客 2020-12-04 18:19

I am working on an application where one of the requirements is that I be able to perform realtime reverse geocoding operations based on GPS data. In particular, I must be

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 19:12

    I created an offline reverse geocoding module for countries: https://bitbucket.org/richardpenman/reverse_geocode

    >>> import reverse_geocode 
    >>> coordinates = (-37.81, 144.96), (31.76, 35.21)
    >>> reverse_geocode.search(coordinates)
    [{'city': 'Melbourne', 'code': 'AU', 'country': 'Australia'},
     {'city': 'Jerusalem', 'code': 'IL', 'country': 'Israel'}]
    

    I will see if I can add data for states.

提交回复
热议问题