Jump to content

ruby-extensions - where do i get them - for opensuse 13.1


Recommended Posts

Guest sayhello
Posted

hello dear LINUX experts

 

 

run opensuse with version 13.1

 

where do i get the following ruby modules / ingedients to run this programme....

Code:

 

require 'open-uri'

require "net/http"

require 'rexml/document'

 

def query_overpass(object_type, left,bottom,right,top, key, value)

base_url = "http://www.overpass-api.de/api/xapi?"

query_string = "#{object_type}[bbox=#{left},#{bottom},#{right},#{top}][#{key}=#{value}]"

url = "#{base_url}#{URI.encode(query_string)}"

resp = Net::HTTP.get_response(URI.parse(url))

data = resp.body

return data and so on and so forth

do i find them in a repo or should i install it with / trough the software-installation-programme...

 

love to hear from you

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...