bearing

Geoalgorithm for finding coordinates of point from a known location by distance and bearing

I'd like to use Google maps static API to display a map with a path overlay indicating a boundary. AFAICT the static API doesn't support polygons, so I intend to circumvent this by drawing the boundary using paths. To do this I need to determine the points to draw the straight lines (paths) between; so I'd like an algorithm that return...

Calculating coordinates given a bearing and a distance

I am having problems implementing the function described here here. This is my Java implementation: private static double[] pointRadialDistance(double lat1, double lon1, double radianBearing, double radialDistance) { double lat = Math.asin(Math.sin(lat1)*Math.cos(radialDistance)+Math.cos(lat1) *Math.sin(radialDistance)*Math.co...

What scale is initial bearing in returned from Location.distanceBetween()

When calling Location.distanceBetween() and getting the initial and final bearing, what scale is the bearing in? I'm getting negative values, which doesn't make sense to me. Bearing goes from 0 to 360 degrees (relative or absolute, it doesn't matter). The only thing I could think of is N through E through S is 0 through 180 degrees, a...