Is there any way to determine how many km i have to run to complete my city? Or how many km of streets there are in my city?
Thanks.
Bjoern
Is there any way to determine how many km i have to run to complete my city? Or how many km of streets there are in my city?
Thanks.
Bjoern
The idea of total distance in a city has been discussed loosely a couple times (here & here) but is not currently available.
Iâd recommend checking with your local government body (city, country, council or equivalent) to see if they have a âPlanningâ department. Sometimes these departments will have not only a map of current (and future proposed streets) but they may also have done a survey where they measured every street in the city. Even with a known total distance, it doesnât mean that will be the total distance you will run. There will be certain inefficiencies like dead ends where you are running the street distance twice or where you need to repeat part of a street to get to another street.
For example, my city did have a document that had the total distance of all streets measured out (though itâs a couple years old). It listed 772.35 miles/1242.94 km. Each run I did, I labeled with a specific name so that way I could aggregate the total distance & elevation at the end. When I completed my city, the total running distance was 1916.7 miles/3084.62 km.
So if you run this query in Overpass, it returns a list of lengths per road type in a city: overpass turbo (lengths in meters). With all way types included, this sums up to almost 9000 km in Soest. The complexity starts with footways along roads, tracks, dual carriage ways, ways extending beyond the city border etc.
length value
7221.35 bridleway
3653.423 construction
170818.526 cycleway
337274.951 footway
72389.355 living_street
135903.241 motorway
27274.662 motorway_link
594997.759 path
13218.547 pedestrian
1812.081 platform
180691.729 primary
2786.708 primary_link
33104.233 proposed
3206.576 raceway
1298303.482 residential
6973.528 rest_area
1173.192 road
489885.534 secondary
1094.059 secondary_link
832305.815 service
6165.253 services
4829.221 steps
534085.579 tertiary
185.53 tertiary_link
2925064.232 track
18624.642 trunk
4749.855 trunk_link
986894.543 unclassified
This seems way too much. Iâm not exactly sure how Overpass works, but where I live we call the disctrict Soest and the city Soest. That could explain the difference.
I ran about 600km this year and covered about 90% of the streets in my city (according to Citystrides). I know i have run some streets multiple times while I didnât run others (no nodes or nodes only on adjacent streets). So when i have to guess i would say its about 500km of streets in my city
It should be possible to modify that overpass query so that it gives you the length of the strideable set only. A lot of the entries on @bas list are road types that are not included in CS at all, and the âhas nameâ requirement should trim the remaining ones to distances more in line with expectations: overpass turbo . This returns
length value
20.36143 living_street
2.57426 pedestrian
10.43539 primary
151.956283 residential
0.837188 road
47.618074 secondary
9.240122 service
72.819988 tertiary
68.412969 unclassified
for a total of 384km.
@8f7162110d9eeaf907ab and @bas could you please help me understand these lines:
area[name=âNordrhein-Westfalenâ]->.a;
area(3600153481)->.b;
I more or less assumed the long number would be the OSM identifier, but I seem to find a different one: Relation: âȘSoest⏠(âȘ153481âŹ) | OpenStreetMap ? The first area is there to distinguish it from the Dutch Soest?
Iâm trying to do this for: Relation: âȘSint-Katelijne-Waver⏠(âȘ414402âŹ) | OpenStreetMap , but Iâm also trying to understand how it works. Because this doesnât:
area[name=âVlaanderenâ]->.a; (I also try âFlandersâ, âAntwerpâ, âMechelenâ)
area(414402)->.b;
Many thanks in advance.
Very interesting thread. I have often wondered the very same thing.
In fact it made me ponder a different type of leader board for CS: City efficiency. Based on a cityâs miles (or KMs) and a Striderâs miles (or KMs), who finished it the most efficiently, and possibly see who finished it the least efficiently.
Iâm an overpass noob but I think your error is in what you have entered in both area fields. Using the OSM link you provided for Sint-Katelijne-Waver, I updated it to be:
area[name=âSint-Katelijne-Waverâ]->.a;
area(3600414402)->.b;
The OSM area ID needs to be added to 3600000000. I have no idea why that is . With that I get below (Overpass query). There is a length/1000 so I believe the results are showing in kilometers. Does that seem somewhat accurate for distance for your city?
Thanks a lot!
Thatâs ~175km in total, thatâs slightly lower than I would have guessed but it is certainly possible. Loads of dead ends though
I also checked the âlargerâ nearby cities:
Mechelen (Relation: âȘMechelen⏠(âȘ412864âŹ) | OpenStreetMap), this returned 351km, which again feels a bit on the low side.
Antwerpen (Relation: âȘAntwerpen⏠(âȘ59518âŹ) | OpenStreetMap), this one gave a more respectable 1285km, but elsewhere I read a figure of 2300km (though including ânon-citystrides-roadsâ), so quite a bit less.
In short, the method possibly gives a bit of an underestimation but certainly a plausible number.
Hi Sander, you can run the query without the exclusions to get the total distance. The exclusions (all the !~ entries) are there so the query returns only citystridideable streets.
Sorry for being a bit lazy with the query, itâs possible to use only one area and the OSM ID, which would be more intuitiveâŠ