4

I´m trying to import several Ways and Nodes from the OSM. But i dont want to get the Ways as a way with different nodes, only the middle of the way.

In my case, all ways are an area (Parks, Parking etc.) and i only need one point - the middle of the area. I could calculate this after the request, but maybe theres a more elegant way?

Stanislav Kralin
  • 11,070
  • 4
  • 35
  • 58

1 Answers1

6

Yes, you can use the center geometry output mode. See this example.

tyr
  • 1,779
  • 1
  • 15
  • 15
  • 3
    Please note that `center` will not be the centroid of your area and the center point doesn't necessarily have to be inside the area.If that's not a concern, you should be ok with `out center;`. See this example: http://overpass-turbo.eu/s/6Kb – mmd Dec 30 '14 at 18:57