CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 25 Aug 2025 01:51:00 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100418172816
location: https://web.archive.org/web/20100418172816/https://github.com/simonw/geocoders
server-timing: captures_list;dur=0.524921, exclusion.robots;dur=0.016351, exclusion.robots.policy;dur=0.007329, esindex;dur=0.008221, cdx.remote;dur=29.029410, LoadShardBlock;dur=335.339368, PetaboxLoader3.datanode;dur=151.609847, PetaboxLoader3.resolve;dur=152.236562
x-app-server: wwwb-app239
x-ts: 302
x-tr: 412
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app239; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 25 Aug 2025 01:51:02 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 18 Apr 2010 17:28:15 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "62e6c55243af41687cb0e627a778e7b9"
x-archive-orig-x-runtime: 95ms
x-archive-orig-content-length: 22754
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 18 Apr 2010 17:28:16 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 05 Oct 2009 02:17:43 GMT", ; rel="prev memento"; datetime="Wed, 10 Mar 2010 16:50:25 GMT", ; rel="memento"; datetime="Sun, 18 Apr 2010 17:28:16 GMT", ; rel="next memento"; datetime="Mon, 20 Sep 2010 04:47:18 GMT", ; rel="last memento"; datetime="Mon, 23 Jun 2025 18:02:32 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_15_20100418153506_crawl102_IndexOnly-c/51_15_20100418172653_crawl101.arc.gz
server-timing: captures_list;dur=0.571729, exclusion.robots;dur=0.017831, exclusion.robots.policy;dur=0.008379, esindex;dur=0.009119, cdx.remote;dur=7.738513, LoadShardBlock;dur=503.008131, PetaboxLoader3.datanode;dur=445.411052, PetaboxLoader3.resolve;dur=358.530884, load_resource;dur=434.598595
x-app-server: wwwb-app239
x-ts: 200
x-tr: 1009
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
simonw's geocoders at master - GitHub
simonw / geocoders
- Source
- Commits
- Network (11)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
Ultra simple API for geocoding a single string against various web services. — Read more
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Wed Jan 27 04:20:46 -0800 2010 | setup script, ignore build directory [markng] |
![]() |
LICENSE.txt | Thu May 28 16:31:15 -0700 2009 | Added BSD license [simonw] |
![]() |
README.txt | Mon Jan 25 04:34:11 -0800 2010 | Added option to use (longitude, latitude) order... [simonw] |
![]() |
geocoders/ | Wed Jan 27 04:20:46 -0800 2010 | move into package directory [markng] |
![]() |
setup.py | Wed Jan 27 04:20:46 -0800 2010 | setup script, ignore build directory [markng] |
README.txt
Geocoders ========= Code for accessing various geocoding web services with an ultra simple API: name, (lat, lon) = geocode('london') The geocode functions return (unicode_place_name, (float_lat, float_lon)) if the string can be geocoded, and (None, (None, None)) if it cannot. Currently supported: Google Geocoder, Yahoo! Geocoder, Yahoo! Placemaker, GeoNames and Multimap. Google: >>> from geocoders.google import geocoder >>> geocode = geocoder('GOOGLE-API-KEY') >>> geocode('new york') (u'New York, NY, USA', (40.756053999999999, -73.986951000000005)) >>> geocode('oneuth') (u'South, Bloomfield, NY 14469, USA', (-77.5385449999999, 42.865267000000003)) Yahoo!: >>> from geocoders.yahoo import geocoder >>> geocode = geocoder('YAHOO-API-KEY') >>> geocode('new york') (u'New York, NY, US', (40.714550000000003, -74.007124000000005)) >>> geocode('oneuth') (u'Aneth, UT 84510, US', (37.217799999999997, -109.189911)) Yahoo! Placemaker: >>> from geocoders.placemaker import geocoder >>> geocode = geocoder('YAHOO-API-KEY') >>> geocode('new york') (u'New York, NY, US', (40.714500000000001, -74.007099999999994)) >>> geocode('oneuth') (None, (None, None)) While Yahoo! Placemaker isn't strictly designed as a geocoder, in practice it can be useful for things like "did you mean location X" in a regular search engine. GeoNames: >>> from geocoders.geonames import geocode # No need for a geocoder factory >>> geocode('new york') (u'New York', (40.714269100000003, -74.005972900000003)) >>> geocode('oneuth') (None, (None, None)) Multimap: >>> from geocoders.multimap import geocoder >>> geocode = geocoder('MULTIMAP-API-KEY') >>> geocode('new york') ('New York, State of New York, United States', ('43.00035', '-75.49990')) >>> geocode('oneuth') ('Omeath, Louth', ('54.08790', '-6.26070')) Reversing the order ------------------- Some libraries use (longitude, latitude) co-ordinate pairs instead of the (latitude, longitude) returned by the geocode functions. The geocoder factory functions all take an optional lonlat=True argument if you need this behaviour. Some examples: Google: >>> from geocoders.google import geocoder >>> geocode = geocoder('GOOGLE-API-KEY', lonlat = True) >>> geocode('new york') (u'New York, NY, USA', (-74.005972900000003, 40.714269100000003)) GeoNames: >>> from geocoders.geonames import geocoder # Using geocoder factory >>> geocode = geocoder(lonlat = True) >>> geocode('new york') (u'New York', (-74.005972900000003, 40.714269100000003))