class Gpx2png::OpenCycle

Public Class Methods

licence_string() click to toggle source
# File lib/gpx2png/opencycle.rb, line 14
def self.licence_string
  "All maps copyright Thunderforest.com and OpenStreetMap contributors"
end
url(zoom, coord, server = '3.') click to toggle source

Convert OSM/UMP tile coords to url

# File lib/gpx2png/opencycle.rb, line 8
def self.url(zoom, coord, server = '3.')
  x, y = coord
  url = "http://tile.thunderforest.com/cycle/#{zoom}/#{x}/#{y}.png"
  return url
end