Module: Constants

Defined in:
lib/googlemaps/services/global_constants.rb

Overview

Global constants used across the library

Since:

  • 1.3.5

Constant Summary collapse

USER_AGENT =

The User-Agent header

Since:

  • 1.3.5

'GoogleMapsRubyClient/' + GoogleMaps::Services::VERSION
DEFAULT_BASE_URL =

The default base URL for all Google Maps requests

Since:

  • 1.3.5

'https://maps.googleapis.com'
GOOGLEAPIS_BASE_URL =

The default base URL for all Google APIs requests

Since:

  • 1.3.5

'https://www.googleapis.com'
RETRIABLE_STATUSES =

HTTP statuses that will trigger a retry request

Since:

  • 1.3.5

[500, 503, 504]
TRAVEL_MODES =

The supported transportation modes

Since:

  • 1.3.5

%w(driving walking bicycling transit)
AVOID_FEATURES =

The features to avoid

Since:

  • 1.3.5

%w(tolls highways ferries indoor)
ROADS_BASE_URL =

The base URL for Roads API

Since:

  • 1.3.5

'https://roads.googleapis.com'
ALLOWED_SCALES =

The supported scale values

Since:

  • 1.3.5

[2, 4]
SUPPORTED_IMG_FORMATS =

The supported image formats

Since:

  • 1.3.5

["png32", "gif", "jpg", "jpg-baseline"]
SUPPORTED_MAP_TYPES =

The supported map types

Since:

  • 1.3.5

["satellite", "hybrid", "terrain"]
SUPPORTED_RADIO_TYPES =

The supported mobile radio types

Since:

  • 1.3.5

%w(lte gsm cdma wcdma)