Class: Facilities::Gis::Client

Inherits:
Client show all
Defined in:
lib/facilities/gis/client.rb

Overview

Core class responsible for api interface operations

Instance Method Summary collapse

Methods inherited from Client

#get_all_facilities

Methods inherited from Common::Client::Base

configuration, #raise_backend_exception

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Instance Method Details

#build_params(order_field, offset) ⇒ Object



13
14
15
16
17
# File 'lib/facilities/gis/client.rb', line 13

def build_params(order_field, offset)
  { where: "s_abbr!='VTCR' AND s_abbr!='MVCTR'", inSR: 4326, outSR: 4326, returnGeometry: true,
    returnCountOnly: false, outFields: '*', returnDistinctValues: false,
    orderByFields: order_field, f: 'json', resultOffset: offset }
end