This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Retrieve road surface given lat/lon coordinates using overpass

0

I have some routes represented by lat/lon coordinates of which I want to retrieve the surface (asphalt, concrete, cobblestone etc) & smoothness of the road.

Therefor I'm trying to query the road surface of one coordinate point using overpass turbo. This is what I have so far:

[out:json][timeout:25];
(
  // query part for: “surface=*”
  way["surface"](around:10,51.28845, 4.502601);
);
// print results
out body;
>;
out skel qt;

However this doesn't work, it says that an empty dataset was received.

After increasing the radius a lot, some results are returned, but the list of returned points grows too long. What am i doing wrong? Help or some guidlines would be much appreciated :)

asked 18 Oct '19, 16:38

bilgeckers's gravatar image

bilgeckers
11113
accept rate: 0%


One Answer:

2

The nearest road to that point doesn't have a surface tag, nor do many of the roads in that area. Of the ways that do have a surface tag, the vast majority are paths, footways or cycleways. If you need to know the surface of the roads, you'll likely need to do an on-the-ground survey yourself.

answered 18 Oct '19, 16:57

alester's gravatar image

alester
6.6k266100
accept rate: 28%

edited 18 Oct '19, 16:58

Source code available on GitHub .