Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a-b-street/country-geocoder
Reverse geocode WGS84 coordinates to an ISO country-code
https://github.com/a-b-street/country-geocoder
Last synced: 3 months ago
JSON representation
Reverse geocode WGS84 coordinates to an ISO country-code
- Host: GitHub
- URL: https://github.com/a-b-street/country-geocoder
- Owner: a-b-street
- License: apache-2.0
- Created: 2023-02-15T16:03:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-27T13:18:47.000Z (12 months ago)
- Last Synced: 2024-07-01T18:23:28.241Z (4 months ago)
- Language: Rust
- Size: 183 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-georust - country-geocoder - Reverse geocode WGS84 coordinates to an ISO country-code. (Watchlist)
README
# country-geocoder
This crate takes a WGS84 coordinate and determines the [two-letter ISO country
code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) where it exists. It
also determines if that country drives on the left or right. It does this by
offline geocoding, using a bundled file.`data.geojson` is produced by `generate_data.py`. Thanks to
for preprocessing public domain Natural Earth data of
country boundaries, and to Tobias Zwick for
[countrymetadata](https://github.com/streetcomplete/countrymetadata) and for
[inspiring this approach](https://github.com/westnordost/countryboundaries).