[Osmlib-devel] Measuring the length of a way
Frankie Roberto
frankie at frankieroberto.com
Sun Jun 28 12:41:40 EDT 2009
Hi,
Just found this gem - nice work!
Thought I'd post a quick problem I'm trying to solve here, in case you can
help point me at a solution. Given a way retrieved from OSM, what would be
the best way of calculating its total length (in say, metres or
kilometres)? Does this formula look like the right one?:
http://stackoverflow.com/questions/27928/how-do-i-calculate-distance-between-two-latitude-longitude-points
Second question: any chance we could include this method in the gem? :-)
Frankie
--
Frankie Roberto
Experience Designer, Rattle
0114 2706977
http://www.rattlecentral.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/osmlib-devel/attachments/20090628/2737da00/attachment.html>
More information about the Osmlib-devel
mailing list