class GoogleDistanceMatrix::MatrixUrlTooLong
Public: API URL was too long
See developers.google.com/maps/documentation/distancematrix/#Limits, which states: “Distance Matrix
API URLs are restricted to 2048 characters, before URL encoding.” “As some Distance Matrix
API service URLs may involve many locations, be aware of this limit when constructing your URLs.”
Attributes
max_url_size[R]
url[R]
Public Class Methods
new(url, max_url_size, response = nil)
click to toggle source
Calls superclass method
GoogleDistanceMatrix::ClientError::new
# File lib/google_distance_matrix/errors.rb, line 87 def initialize(url, max_url_size, response = nil) super response @url = url @max_url_size = max_url_size end
Public Instance Methods
to_s()
click to toggle source
# File lib/google_distance_matrix/errors.rb, line 94 def to_s "Matrix API URL max size is: #{max_url_size}. Built URL was: #{url.length}. URL: '#{url}'." end