New answers tagged geolocation
A simple search with Google threw up this website... http://jgiesen.de/elevazmoon/basics/index.htm
I would recommend that if you can process data yourself then you can go for maxmind.com free database or shell out a few bucks for a cities database from http://www.worldcitiesdatabase.com Even geonames is a good resource to look..also check for a open source cities database hosted on code.google.com
I have a fully functional, open source , freely hosted, GTFS Editor here http://gee.chalo.org.uk:9080/Gee/Eric.html
If I understand the question and its answer correctly, you would need to use the earth's radius to get from the answer in that question to a measurement in kilometers etc. See this page, in particular the sections on calculating the Bearing and Cross-track distance
The problem seems to be that the reading of the geolocation on load of the page doesn't work, probably because the geolocation isn't available yet. (especially if the browser asks the user first) But you can read out the position inside a eventhandler. (tracking needs to be turned on). I call this eventhandler handler in the following examples. Examples ...
Top 50 recent answers are included