Caculate lat/lon from distance

Given a start point, a distance and a heading, it is possible to work out the resulting latitude and longitude. See the maths behind it here. See Radians Versus Degrees for the utility functions we are going to use in this calculation. There's an example of a mashup using this at Urbarama mashup

Variables

The variables required to calculate a new lat/lon are

Origin Latitude and Longitude

Heading in degrees from origin

Distance in kilometers from origin

Together, they can be used to create the latitude and longitude of a new point like this