Module: Periplus

Includes:
HTTParty
Defined in:
lib/periplus.rb,
lib/periplus/route.rb,
lib/periplus/request.rb,
lib/periplus/location.rb,
lib/periplus/bing_response.rb

Defined Under Namespace

Classes: BingResponse, Location, Request, Route

Class Method Summary collapse

Class Method Details

.address_map_url(key, address, pushpins = [], options = {}) ⇒ Object



38
39
40
41
# File 'lib/periplus.rb', line 38

def self.address_map_url(key, address, pushpins = [], options = {})
  request = Request.new key
  request.address_map_url address, pushpins, options
end

.location_details(key, address, options = {}) ⇒ Object



27
28
29
30
31
# File 'lib/periplus.rb', line 27

def self.location_details(key, address, options = {})
  request = Request.new key
  url = request.location_details_url address, options
  Location.new (get url)
end

.route_details(key, waypoints, options = {}) ⇒ Object



21
22
23
24
25
# File 'lib/periplus.rb', line 21

def self.route_details(key, waypoints, options = {})
  request = Request.new key
  url = request.route_details_url waypoints, options
  Route.new (get url)
end

.route_map_url(key, waypoints, pushpins = [], options = {}) ⇒ Object



33
34
35
36
# File 'lib/periplus.rb', line 33

def self.route_map_url(key, waypoints, pushpins = [], options = {})
  request = Request.new key
  request.route_map_url waypoints, pushpins, options
end

.verboseObject



17
18
19
# File 'lib/periplus.rb', line 17

def self.verbose
  @verbose
end

.verbose=(value) ⇒ Object



13
14
15
# File 'lib/periplus.rb', line 13

def self.verbose=(value)
  @verbose = value
end