[Osmlib-devel] Measuring the length of a way
frankie at frankieroberto.com
Mon Jun 29 04:58:45 EDT 2009
On Mon, Jun 29, 2009 at 7:17 AM, Jochen Topf <jochen at remote.org> wrote:
> 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
> > the best way of calculating its total length (in say, metres or
> > kilometres)? Does this formula look like the right one?:
> Haven't checked the formula, but "great-circle distance" and "Haversine"
> formula, are definitely right.
Thanks. Will investigate further.
> > Second question: any chance we could include this method in the gem? :-)
> osmlib is for OSM related stuff, calculating great-circle distance or other
> geometry functions should probably go into a geo library such as GeoRuby.
Fair point. I'll check out what existing Ruby geo gems there are out there.
Experience Designer, Rattle
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Osmlib-devel