Skip to content

Commit dd3c211

Browse files
committed
Include cross street in formatted name of intersection
1 parent 8d89fe9 commit dd3c211

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MapboxGeocoder/MBPlacemark.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ open class GeocodedPlacemark: Placemark {
485485
} else {
486486
return "\(houseNumber) \(streetName)"
487487
}
488+
} else if scope == .address, precision == .intersection {
489+
// For intersection features, `text` is just the first street name. The first line of the fully qualified address contains the cross street too.
490+
return qualifiedNameComponents.first ?? text
488491
} else {
489492
return text
490493
}

0 commit comments

Comments
 (0)