geocoding

Getting distance between two points based on latitude/longitude

Getting distance between two points based on latitude/longitude Question: I tried implementing the formula in Finding distances based on Latitude and Longitude. The applet does good for the two points I am testing: Yet my code is not working. from math import sin, cos, sqrt, atan2 R = 6373.0 lat1 = 52.2296756 lon1 = 21.0122287 …

Total answers: 12

Extract Coordinates from KML BatchGeo File with Python

Extract Coordinates from KML BatchGeo File with Python Question: I’ve uploaded some addresses to BatchGeo and downloaded the resulting KML file from which I want to extract the coordinates. I managed to prettify the jumbled text file online here, but I don’t know how to parse it to extract the co-ordinates. <?xml version=”1.0″ ?> <kml …

Total answers: 2

Check if a geopoint with latitude and longitude is within a shapefile

Check if a geopoint with latitude and longitude is within a shapefile Question: How can I check if a geopoint is within the area of a given shapefile? I managed to load a shapefile in python, but can’t get any further. Asked By: Gerald Bäck || Source Answers: One way to do this is to …

Total answers: 7

Reverse Geocoding Without Web Access

Reverse Geocoding Without Web Access Question: I am working on an application where one of the requirements is that I be able to perform realtime reverse geocoding operations based on GPS data. In particular, I must be able to determine the state/province to which a latitude, longitude pair maps and detect when we have moved …

Total answers: 7