notepad-executable
notepad-executable

Reputation: 41

Is there a way to get the middle of a way from Overpass API?

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?

Upvotes: 4

Views: 1627

Answers (1)

tyr
tyr

Reputation: 1833

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

Upvotes: 6

Related Questions