You probably already have a shapefile. If not, I downloaded one from Natural Earth:
$ curl -L -O http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries.zip
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
cd /usr/local/Library/Formula | |
git checkout 9e18876 tomcat.rb | |
brew install tomcat |
'''Provides utility functions for encoding and decoding linestrings using the | |
Google encoded polyline algorithm. | |
''' | |
def encode_coords(coords): | |
'''Encodes a polyline using Google's polyline algorithm | |
See http://code.google.com/apis/maps/documentation/polylinealgorithm.html | |
for more information. | |