manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.23k stars 341 forks source link

request: travel a distance #45

Closed kevinburkeshyp closed 8 years ago

kevinburkeshyp commented 9 years ago

Say I wanted to get, roughly, a 30km by 30km square around a given lat/long, how would I do this?

Something like geolib.travel(lat, long, 30, 'km', degrees) where degrees is a number between 0 and 359.9999, and indicates the direction of travel..

manuelbieh commented 9 years ago

Good idea!

manuelbieh commented 9 years ago

http://www.movable-type.co.uk/scripts/latlong.html#destPoint

manuelbieh commented 9 years ago

http://www.geomidpoint.com/destination/

Some nice sources to get some inspiration from ;)

manuelbieh commented 8 years ago

Short update: we now have a half finished pull request which implements the movable-type function I mentioned above: #66

ath88 commented 8 years ago

So, I assume this is still open, because you requested some unit tests in #66?

manuelbieh commented 8 years ago

Nope. This one is still open because I just forgot to close it ;) The PR was merged and tests were added!