class Geocoder::Result::Mapbox
def context_part(name)
def context_part(name) context.map { |c| c['text'] if c['id'] =~ Regexp.new(name) }.compact.first end
def context_part(name) context.map { |c| c['text'] if c['id'] =~ Regexp.new(name) }.compact.first end