Skip to content

Commit 96829cd

Browse files
authored
bring back toString method in CarmenFeature (#112)
1 parent dac1874 commit 96829cd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

libjava/lib/src/main/java/com/mapbox/services/geocoding/v5/models/CarmenFeature.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,15 @@ public double getRelevance() {
8282
public Position asPosition() {
8383
return Position.fromCoordinates(center[0], center[1]);
8484
}
85+
86+
/**
87+
* Human-readable text representing the full result hierarchy
88+
* (e.g. "Austin, Texas, United States").
89+
*
90+
* @return String with human-readable text.
91+
*/
92+
@Override
93+
public String toString() {
94+
return getPlaceName();
95+
}
8596
}

0 commit comments

Comments
 (0)