I'm writing a relatively simple app in which I'm using RGeo to calculate distances between points on the globe. I'm doing this using a RGeo::Geographic.spherical_factory
.
Now I want to be able to create a new point by adding an offset to an existing point. For example, I would like to be able to find the longitude and latitude of the point 500 metres north and 200 metres east of an existing point.
How should I go about doing this?
Maybe this helps:
Which gives you
Note: I'm not sure what the different between
RGeo::Geographic.simple_mercator_factory
andRGeo::Geographic.spherical_factory
would be here.From How to move a point in Rgeo