1

I need a way to get following information for each intersection or junction in Berlin:

  • latitude and longitude
  • area covered

I could get all Junctions from openstreetmap as nodes, which would give me the lat/lon, but not the area covered.

Any solutions?

  • 2
    Can you get any information about road width? If so, area could be estimated (at least for perpendicular crossings) by multiplying the road widths. Ex. if a 20m wide road crosses a 10m wide road there will be an area of 200m^2 of overlap (i.e. the intersection). – ycartwhelen Jul 24 at 13:24
  • @ycartwhelen good idea but I think the datasets I found so far don't containt the width (but some do the length). – Selphiron Jul 24 at 13:33
5

OSM usually doesn't contain the exact outline of a junction or intersection (except in very few cases where area:highway has been mapped) and most roads don't have a width set.

However you can try to estimate it by looking at the highway class (i.e. primary, secondary, tertiary...) and the number of lanes.

  • Thanks, that sounds reasonable. Is there an easy way to get all streets ("highways") of an intersection? How do you get the intersections anyway? – Selphiron Jul 24 at 15:22
  • 1
    An intersection is defined by at least two ways sharing the same node (and the node not being the start or end of the way). See elements and OSM XML in case you are still trying to find out how OSM internals work. So download the ways (and their nodes) at the intersections you are interested in, or of the whole city. Overpass API will be helpful. – scai Jul 25 at 7:12
  • Thanks, but do you know a way how to extract the relevant nodes, off the top of your head? Like osmosis maybe? – Selphiron Jul 25 at 8:58
  • 1
    I've never done this myself but osmosis is definitely able to extract the nodes for all ways you are interested in. Alternatively take a look at osmium-tool which is more modern and faster than osmosis. – scai Jul 25 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.