class Geocoder::Lookup::Olleh

Route Search shortest : ignore traffic. shortest path high way : include high way free way : no charge optimal : based on traffic

Constants

ADDR_CD_TYPES
COORD_TYPES
INCLUDE_JIBUN
NEW_ADDR_SEARCH_OPTIONS
NEW_ADDR_TYPES
PRIORITY
ROUTE_COORD_TYPES

Public Class Methods

addrcdtype() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 87
def self.addrcdtype
  ADDR_CD_TYPES
end
check_query_type(query) click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 111
def self.check_query_type(query)

  options = query.options
  return options[:query_type] if options[:query_type]

  query_type = case
  when options.include?(:priority)
    'route_search'
  when query.reverse_geocode? && options.include?(:include_jibun)
    'reverse_geocoding'
  when options.include?(:coord_in)
    'convert_coord'
  when options.include?(:l_code)
    'addr_step_search'
  when options.include?(:places)
    'addr_local_search'
  when options.include?(:radius)
    'addr_nearest_position_search'
  else
    'geocoding'
  end

  options[:query_type] = query_type
end
coord_types() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 99
def self.coord_types
  COORD_TYPES
end
include_jibun() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 95
def self.include_jibun
  INCLUDE_JIBUN
end
new_addr_search_options() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 79
def self.new_addr_search_options
  NEW_ADDR_SEARCH_OPTIONS
end
new_addr_types() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 91
def self.new_addr_types
  NEW_ADDR_TYPES
end
priority() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 83
def self.priority
  PRIORITY
end
route_coord_types() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 103
def self.route_coord_types
  ROUTE_COORD_TYPES
end

Public Instance Methods

auth_key() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 107
def auth_key
  token
end
name() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 71
def name
  "Olleh"
end
query_url(query) click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 75
def query_url(query)
  base_url(query) + url_query_string(query)
end
supported_protocols() click to toggle source
# File lib/geocoder/lookups/olleh.rb, line 67
def supported_protocols
  [:http, :https]
end