Top-rated recipes tagged "geocoding"http://code.activestate.com/recipes/tags/geocoding/top/2017-02-13T05:34:47-08:00ActiveState Code RecipesCalculating distance between two geographic points (Python) 2009-05-28T04:19:30-07:00Bartek Górnyhttp://code.activestate.com/recipes/users/4170491/http://code.activestate.com/recipes/576779-calculating-distance-between-two-geographic-points/ <p style="color: grey"> Python recipe 576779 by <a href="/recipes/users/4170491/">Bartek Górny</a> (<a href="/recipes/tags/algorithms/">algorithms</a>, <a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/math/">math</a>). Revision 2. </p> <p>Implementation of Haversine formula for calculating distance between points on a sphere. Given geographic coordinates, returns distance in kilometers.</p> Geocoding Lists via Google Maps (Python) 2012-05-11T05:06:27-07:00Mano Bastardohttp://code.activestate.com/recipes/users/4182040/http://code.activestate.com/recipes/578126-geocoding-lists-via-google-maps/ <p style="color: grey"> Python recipe 578126 by <a href="/recipes/users/4182040/">Mano Bastardo</a> (<a href="/recipes/tags/batch/">batch</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/geocode/">geocode</a>, <a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/google_maps/">google_maps</a>, <a href="/recipes/tags/lat/">lat</a>, <a href="/recipes/tags/latitude/">latitude</a>, <a href="/recipes/tags/list/">list</a>, <a href="/recipes/tags/list_comprehension/">list_comprehension</a>, <a href="/recipes/tags/lng/">lng</a>, <a href="/recipes/tags/longitude/">longitude</a>, <a href="/recipes/tags/map/">map</a>, <a href="/recipes/tags/web/">web</a>). Revision 2. </p> <p>A simple script written as an experiment in geocoding addresses in a database. A list of addresses in the form of "100 Any Street, Anytown, CA, 10010" is passed to a Google Maps URL, and the latitude/longitude coordinates are extracted from the returned XML.</p> <p>XML methods are not used in this script, but simple string searches instead.</p> Get external IP & geolocation in bash. (Bash) 2014-11-30T00:46:28-08:00manuhttp://code.activestate.com/recipes/users/4191225/http://code.activestate.com/recipes/578972-get-external-ip-geolocation-in-bash/ <p style="color: grey"> Bash recipe 578972 by <a href="/recipes/users/4191225/">manu</a> (<a href="/recipes/tags/bash/">bash</a>, <a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/geolocation/">geolocation</a>). Revision 2. </p> <p>Very simple way to get external IP and geolocation uysing dig and geoiplookup.</p> <p><code>dig</code> is cool to obtain my external IP and I use <code>geoiplookup</code> to convert IP to location. You need geoip-bin and, geoip-database (and/or geoip-database-contrib and geoip-database-extra). In Debian, database seems update monthly.</p> <p>It's just a tip.</p> Wigle wifi geolocation [deprecated] (Python) 2017-02-13T05:34:47-08:00Jamie Bullhttp://code.activestate.com/recipes/users/4183059/http://code.activestate.com/recipes/578637-wigle-wifi-geolocation-deprecated/ <p style="color: grey"> Python recipe 578637 by <a href="/recipes/users/4183059/">Jamie Bull</a> (<a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/location/">location</a>, <a href="/recipes/tags/mac_address/">mac_address</a>, <a href="/recipes/tags/wigle/">wigle</a>). Revision 5. </p> <p><strong>EDIT: WiGLE have retired this API and moved to api/v2</strong></p> <p>There is now a Python wrapper for the API which you can install using <code>pip install pygle</code>.</p> Calculate distance from .kmz files (Python) 2009-05-31T23:59:34-07:00Michal Niklashttp://code.activestate.com/recipes/users/186902/http://code.activestate.com/recipes/576782-calculate-distance-from-kmz-files/ <p style="color: grey"> Python recipe 576782 by <a href="/recipes/users/186902/">Michal Niklas</a> (<a href="/recipes/tags/distance/">distance</a>, <a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/google_earth/">google_earth</a>, <a href="/recipes/tags/kmz/">kmz</a>, <a href="/recipes/tags/points/">points</a>). Revision 2. </p> <p>Calculates distance in kilometers from points saved in .kmz file. Such files can be created by Google Earth</p>