end
end
+ # Raised when a rate limit is exceeded
+ class APIRateLimitExceeded < APIError
+ def initialize
+ super "Rate limit exceeded"
+ end
+
+ def status
+ :too_many_requests
+ end
+ end
+
# Helper methods for going to/from mercator and lat/lng.
class Mercator
include Math