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?


1 Answer 1


You have to add the option center after the out param :

overpass-api.de/api/interpreter?data=[out:json];(way(45.305,4.183,45.525,4.582)[leisure=playground]);out center;

You now should have a centre for each way element :

"center": {
    "lat": 45.4221048,
    "lon": 4.4259259

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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