Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Reverse geocode WGS84 coordinates to an ISO country-code

License

Notifications You must be signed in to change notification settings

a-b-street/country-geocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

country-geocoder

NOTE: Deprecated / unmaintained. Use https://github.com/westnordost/country-boundaries-rust/ instead.

This crate takes a WGS84 coordinate and determines the two-letter ISO country code 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 http://geojson.xyz for preprocessing public domain Natural Earth data of country boundaries, and to Tobias Zwick for countrymetadata and for inspiring this approach.

About

Reverse geocode WGS84 coordinates to an ISO country-code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published