There’s been an ongoing issue where it appears as though streets are being counted as completed twice. There’s this thread with some conversation on the topic: Fixing street double count
I approached this by:
Adding the ability to mark a city as “nested”
Adding the ability to relate a nested city to its parent city (a link to the parent city is displayed on nested city pages)
Not including nested cities when doing street counts
Not including nested cities in the Challenge calculations (unless the Challenge happens to be on a nested city)
I’m currently running some code that finds/marks these nested cities. It seems to be running quickly.
While I was working on this, I noticed some cities that are kind of nested. Which… Of course… Right?
One example is the southern area of Pomona Pomona, New York - CityStrides which sticks out of the border of Town of Haverstraw Town of Haverstraw, New York - CityStrides
Gotta figure out what to do with those.
Very cool! I’ll get started with my new home base of Lisboa, Portugal. There are a lot of neighborhoods that are subsections and the roads here double- or even multi-count: for example, Rua Ramalho Ortigão (22 nodes) = this (13 nodes) + this (9 nodes), and counts as 3 individual streets.
The following “cities” (really, neighborhoods) should be nested in Lisboa:
The following “cities” should be nested in Amadora, which isn’t in the cities list for the Lisboa region…a separate problem that I only realized when assembling this list.
There are a bunch of other neighborhoods in Lisboa and Amadora that I haven’t run yet, but since I’m the first to respond I don’t know if this is overkill or if you can extract the other neighborhoods/sub-sections once you have the city link. Hope this helps and thanks as always for your constant improvements to a great platform.
Awesome, not sure if I made this clear already, I’ll leave it here anyway so you have it all in one place. All the cities in the missing cities spreadsheet under Region: Oslo, should be nested under Oslo when added
Community Council Areas missing from OSM (17 of 46):
Colinton
Corstorphine
Craigleith/Blackhall
Craiglockhart
Cramond and Barnton
Drum Brae
Fairmilehead
Firrhill
Grange/Prestonfield
Kirkliston
Marchmont & Sciennes
Merchiston
Morningside
Murrayfield
Ratho and District
Silverknowes
Queensferry and District
This is awesome! Thanks for doing this. I’m curious if there’s a way now to create new nested cities so that gigantic areas (like Queens or Brooklyn) can be broken up into more bite sized chunks.
So what do you see this as the scope of this? Limited to fixing double street counts, or can it be expanded to split big cities into smaller chunks or combine small villages into bigger targets?
All of the city border data comes from OpenStreetMap. If sub-sections of a city exist in there, I can import those into CityStrides as nested cities.
I’ve done that for a number of larger cities & I’m happy to add more.
One thing I’ve noticed is some roads in “nested cities” that are in the nested city but not the larger city don’t count at all. I don’t know why, I haven’t investigated in OSM, but for instance in my recent activity (CityStrides) there are 15 unique street names in my completed list, but it only says 9 completed (the 9 that would previously have double-counted). Before Benfica was nested in Lisboa, this run would have shown 24 completed streets (9 x 2 + 6) but the solution to that problem now under-counts the streets I did complete
I’ve been trying to figure out Aberdeen, actually. The smaller nested cities has been helpful to me since I live in the midst of all those, but it’s clearly a broken system. I covered a road last week (Prospect Terrace) which has the same name as a road in Dyce. OSM/CS seems to treat them as the same road, given that Dyce is part of Aberdeen (despite being significantly far apart). I wonder if mapping Dyce as a separate, nested boundary would help sort problems like that out?
I also couldn’t figure out why “Castlehill and Pittodrie” or “Froghall, Powis and Sunnybank” are a separate area of the city while Cults, Dyce, Bieldside, Kincorth, etc. aren’t. To my knowledge, these aren’t historically separate towns which merged (unlike Torry, Old Aberdeen, and Bridge of Don, but are somewhat random groupings. They don’t seem to follow any specific metrics for being bound - any insights as to what sets them apart?
I think the boundaries for the nested ‘cities’ in OSM for Aberdeen are, like Edinburgh, for community councils, but I think it may be a work in progress and not all of the Aberdeen community council areas have been added to OSM yet. Here’s the full list: Community Councils | Aberdeen City Council