Your challenge - and remember - try to keep your work to between five to fifteen minutes - is to write a function that accepts two inputs - a starting geopoint and ending geopoint. By “geopoint” I simply mean a structure/hash/etc that contains a longitude and latitude value.
Given those two points, determine what direction the second input is from the first one. Return that direction in a simple form like “East”, or “South East”. Obviously this will not be precise, and that’s the point. Most humans don’t need to know that B is at angle 92.12 from point A. Instead, they want to know that it is east of here. (And to be clear, I totally guessed at that angle and direction there.)
Image credit e r j k p r u n c z y k