/tripkit/TripKitAndroid/com.skedgo.geocoding/GeocodeUtilities

GeocodeUtilities

\ object GeocodeUtilities

Functions

Name Summary
compareInt fun compareInt(x: Int, y: Int): Int
isAbbreviationFor fun isAbbreviationFor(abbreviation: String, text: String): Boolean
isSuburb fun isSuburb(foursquareResult: GCFoursquareResultInterface): Boolean
rangedScoreForScore fun rangedScoreForScore(score: Int, minimum: Int, maximum: Int): Int
scoreBasedOnDistanceFromCoordinate fun scoreBasedOnDistanceFromCoordinate(coordinate: LatLng, region: GCBoundingBox?, regionCenter: LatLng, longDistance: Boolean): Int
scoreBasedOnNameMatchBetweenSearchTerm fun scoreBasedOnNameMatchBetweenSearchTerm(searchTerm: String, candidate: String?): Int
scoreBetweenSearchTerm fun scoreBetweenSearchTerm(target: String, candidate: String): Int
sortByImportance fun <T : GCResultInterface> sortByImportance(scoreResults: List<MGAResultInterface<T>>): List<MGAResultInterface<T>>
sortByScore fun <T : GCResultInterface> sortByScore(scoreResults: List<MGAResultInterface<T>>): List<MGAResultInterface<T>>
stringForScoringOfString fun stringForScoringOfString(term: String?): String