Popular recipes tagged "geocoding" but not "lat"http://code.activestate.com/recipes/tags/geocoding-lat/2017-02-13T05:34:47-08:00ActiveState Code RecipesGet 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>
Calculating 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>
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>