Closed fosskers closed 6 years ago
How JTS calculates Line length. I'm not sure of the units.
[info] 0.0 kilometers of roads were changed.
Works like a charm. :sunglasses:
What was needed was to search for the key highway
. See: https://wiki.openstreetmap.org/wiki/Key:highway
Check these values for the highway
tag, these are the roads we want to count distance on:
val tags =
Set(
"motorway",
"trunk",
"motorway_link",
"trunk_link",
"primary",
"secondary",
"tertiary",
"primary_link",
"secondary_link",
"tertiary_link",
"service",
"residential",
"unclassified",
"living_street",
"road"
)
Roger. My tests revealed a bug in VectorPipe that I'm fixing now / tomorrow morning.
[info] 199.53569223578558 kilometers of roads were changed.
This number is down from the 260 that I was seeing yesterday before I started filtering on specific highway
types. I'm still unsure of the units, though, since I'm just doing a naive JTS .length
call on the Lines.
Now to produce actual kilometre distances.
My use of Haversine is wrong, I'll correct it now.
LGTM
TODO