Skip to content

Commit

Permalink
Include cross street in formatted name of intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Apr 11, 2019
1 parent 8d89fe9 commit dd3c211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MapboxGeocoder/MBPlacemark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ open class GeocodedPlacemark: Placemark {
} else {
return "\(houseNumber) \(streetName)"
}
} else if scope == .address, precision == .intersection {
// For intersection features, `text` is just the first street name. The first line of the fully qualified address contains the cross street too.
return qualifiedNameComponents.first ?? text
} else {
return text
}
Expand Down

0 comments on commit dd3c211

Please sign in to comment.