# Number of miles covered in a city

**URL:** <https://community.citystrides.com/t/number-of-miles-covered-in-a-city/25382>\
**Category:** Support\
**Created:** [September 22, 2022, 9:24pm UTC](https://community.citystrides.com/t/number-of-miles-covered-in-a-city/25382 "2022-09-22T21:24:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![JamesChevalier](https://community.citystrides.com/user_avatar/community.citystrides.com/jameschevalier/32/2_2.png) [@JamesChevalier](https://community.citystrides.com/u/JamesChevalier)\
**Post date:** [July 18, 2024, 4:37pm UTC](https://community.citystrides.com/t/number-of-miles-covered-in-a-city/25382/5 "2024-07-18T16:37:06Z")

</div>

> [@6f26ba147c101b04808a](#):
>
> total distance not yet covered in a city

This is a fun idea…  
The easy path for me would be to sum up the distance of all incomplete streets. This would be slightly inaccurate, if you’ve partially completed some of them.  
I’ll need to look into if/how I can calculate that partially completed distance, to subtract it from the sum.

> [@6f26ba147c101b04808a](#):
>
> The current solution seems to sum up all the distances from all the activities.

The current display is a sum of distances for any activity that _progresses_ any street. If you run a route that completes a street, and then the next day run the exact same route, that second activity will not count towards your total distance. Similarly, if you have a favorite route that you have run hundreds of times then only the first time you’ve done the route counts towards your total distance.

This does count the full distance for an activity that e.g. covers miles of previously completed streets and also covers a small previously incompleted area. I consider this working as designed, since that previously completed section could be the path you need to take in order to get to an incomplete neighborhood … it counts, because we cannot be 100% efficient.

> [@6f26ba147c101b04808a](#):
>
> For planning purposes, if I have run on the 1km street, 20 times, I want the option for the distance covered to be 1km and not 20km.

If you’re running this 1km street 20 times in order to reach other streets that you need to complete, then that 1km counts 20 times because you needed to run that distance to complete those streets.

If you’re running this 1km street 20 times because it’s a fun loop that never completes more streets, then it is only counted the first time you run it (the first time that it progresses/completes any street).

---

_[View the full topic](https://community.citystrides.com/t/number-of-miles-covered-in-a-city/25382)._
