class Geocoder::Result::Geoapify
def rank
match_type: :full_match
confidence: 0.88,
popularity: 8.615793062435909,
{
Example:
* match_by_country_or_state
* match_by_city_or_disrict
* match_by_postcode
* match_by_street
* match_by_building
* inner_part
* full_match
* `match_type` - The result's match type, one of following:
* `confidence` - The confidence value of the result (0-1)
* `popularity` - The popularity score of the result
Calculated rank for the result, containing the following keys:
def rank return unless properties['rank'] r = symbol_hash(properties['rank']) r[:match_type] = r[:match_type].to_sym if r[:match_type] r end