I want to get Road/Lane edges data (Lat/Long/Alt) from the Open Street Map so, that I can overlay rendered edges on a video overlay. I have video overlay working fine but I just need coordinates of road/Lane edges from OSM. How should I go about it ? Up until now, I have used OSMIUM (http://osmcode.org/libosmium/manual.html) to import PBF file into my C++ program, I can see tags like "Highway" but they contain Lat/Long of an arbitrary point on the road AND I need is coordinates of the edges. Can anyone point me in the right direction ? Thanks in advance. asked 14 Jun '17, 19:48 NitinH |
OSM generally maps linear features such as roads by a single line ideally located on the centre line of the feature. OSM does not, in general, store altitude data. There is a method of mapping highways as areas but it is not yet widely used (partly because it makes mapping things more difficult, but mainly because areas are not necessary for many use-cases). Equally the width tag is not widely used with highways. To achieve what you want you will need to:
answered 14 Jun '17, 20:01 SK53 ♦ 4
Where available, the road width might be also estimated from the
(15 Jun '17, 08:56)
Piskvor
|