Module: Constants
- Defined in:
- lib/googlemaps/services/global_constants.rb
Overview
Global constants used across the library
Constant Summary collapse
- USER_AGENT =
The User-Agent header
'GoogleMapsRubyClient/' + GoogleMaps::Services::VERSION
- DEFAULT_BASE_URL =
The default base URL for all Google Maps requests
'https://maps.googleapis.com'
- GOOGLEAPIS_BASE_URL =
The default base URL for all Google APIs requests
'https://www.googleapis.com'
- RETRIABLE_STATUSES =
HTTP statuses that will trigger a retry request
[500, 503, 504]
- TRAVEL_MODES =
The supported transportation modes
%w(driving walking bicycling transit)
- AVOID_FEATURES =
The features to avoid
%w(tolls highways ferries indoor)
- ROADS_BASE_URL =
The base URL for Roads API
'https://roads.googleapis.com'
- ALLOWED_SCALES =
The supported scale values
[2, 4]
- SUPPORTED_IMG_FORMATS =
The supported image formats
["png32", "gif", "jpg", "jpg-baseline"]
- SUPPORTED_MAP_TYPES =
The supported map types
["satellite", "hybrid", "terrain"]
- SUPPORTED_RADIO_TYPES =
The supported mobile radio types
%w(lte gsm cdma wcdma)