Suche senden
Hochladen
1時間で作るマッシュアップサービス(関西版)
•
7 gefällt mir
•
2,810 views
Yuichiro MASUI
Folgen
OSC2007で話した内容
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 150
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
OSC2007-niigata - mashup
OSC2007-niigata - mashup
Yuichiro MASUI
More to RoC weibo
More to RoC weibo
shaokun
Rails web api 开发
Rails web api 开发
shaokun
Fullstack conf 2017 - Basic dev pipeline end-to-end
Fullstack conf 2017 - Basic dev pipeline end-to-end
Ezequiel Maraschio
Using WordPress as your application stack
Using WordPress as your application stack
Paul Bearne
Angular server-side communication
Angular server-side communication
Alexe Bogdan
Symfony bundle fo asynchronous job processing
Symfony bundle fo asynchronous job processing
Wojciech Ciołko
Rails Page Caching
Rails Page Caching
Travis Roberts
Empfohlen
OSC2007-niigata - mashup
OSC2007-niigata - mashup
Yuichiro MASUI
More to RoC weibo
More to RoC weibo
shaokun
Rails web api 开发
Rails web api 开发
shaokun
Fullstack conf 2017 - Basic dev pipeline end-to-end
Fullstack conf 2017 - Basic dev pipeline end-to-end
Ezequiel Maraschio
Using WordPress as your application stack
Using WordPress as your application stack
Paul Bearne
Angular server-side communication
Angular server-side communication
Alexe Bogdan
Symfony bundle fo asynchronous job processing
Symfony bundle fo asynchronous job processing
Wojciech Ciołko
Rails Page Caching
Rails Page Caching
Travis Roberts
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
HTML5 tutorial: canvas, offfline & sockets
HTML5 tutorial: canvas, offfline & sockets
Remy Sharp
Great Developers Steal
Great Developers Steal
Ben Scofield
Building Cloud Castles - LRUG
Building Cloud Castles - LRUG
Ben Scofield
Building Cloud Castles
Building Cloud Castles
Ben Scofield
[Kotlin Serverless 工作坊] 單元 3 - 實作 JSON API
[Kotlin Serverless 工作坊] 單元 3 - 實作 JSON API
Shengyou Fan
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Cirdes Filho
Rails3 changesets
Rails3 changesets
Wen-Tien Chang
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
Ikuru Kanuma
21.search in laravel
21.search in laravel
Razvan Raducanu, PhD
Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5
Elena Kolevska
Adventurous Merb
Adventurous Merb
Matt Todd
{{components deepDive=true}}
{{components deepDive=true}}
raytiley
How to develop modern web application framework
How to develop modern web application framework
techmemo
Getting Started-with-Laravel
Getting Started-with-Laravel
Mindfire Solutions
REST API for your WP7 App
REST API for your WP7 App
Agnius Paradnikas
以 Laravel 經驗開發 Hyperf 應用
以 Laravel 經驗開發 Hyperf 應用
Shengyou Fan
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Amazon Web Services
Apache Camel for Devclub.eu
Apache Camel for Devclub.eu
Anton Arhipov
Silex Cheat Sheet
Silex Cheat Sheet
Andréia Bohner
Taxonomic tree of bacteria.
Taxonomic tree of bacteria.
kamran khan
PresentacióN En Clase Contenidos
PresentacióN En Clase Contenidos
monsalvecadenas
Weitere ähnliche Inhalte
Was ist angesagt?
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
HTML5 tutorial: canvas, offfline & sockets
HTML5 tutorial: canvas, offfline & sockets
Remy Sharp
Great Developers Steal
Great Developers Steal
Ben Scofield
Building Cloud Castles - LRUG
Building Cloud Castles - LRUG
Ben Scofield
Building Cloud Castles
Building Cloud Castles
Ben Scofield
[Kotlin Serverless 工作坊] 單元 3 - 實作 JSON API
[Kotlin Serverless 工作坊] 單元 3 - 實作 JSON API
Shengyou Fan
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Cirdes Filho
Rails3 changesets
Rails3 changesets
Wen-Tien Chang
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
Ikuru Kanuma
21.search in laravel
21.search in laravel
Razvan Raducanu, PhD
Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5
Elena Kolevska
Adventurous Merb
Adventurous Merb
Matt Todd
{{components deepDive=true}}
{{components deepDive=true}}
raytiley
How to develop modern web application framework
How to develop modern web application framework
techmemo
Getting Started-with-Laravel
Getting Started-with-Laravel
Mindfire Solutions
REST API for your WP7 App
REST API for your WP7 App
Agnius Paradnikas
以 Laravel 經驗開發 Hyperf 應用
以 Laravel 經驗開發 Hyperf 應用
Shengyou Fan
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Amazon Web Services
Apache Camel for Devclub.eu
Apache Camel for Devclub.eu
Anton Arhipov
Silex Cheat Sheet
Silex Cheat Sheet
Andréia Bohner
Was ist angesagt?
(20)
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
HTML5 tutorial: canvas, offfline & sockets
HTML5 tutorial: canvas, offfline & sockets
Great Developers Steal
Great Developers Steal
Building Cloud Castles - LRUG
Building Cloud Castles - LRUG
Building Cloud Castles
Building Cloud Castles
[Kotlin Serverless 工作坊] 單元 3 - 實作 JSON API
[Kotlin Serverless 工作坊] 單元 3 - 實作 JSON API
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Como construir uma Aplicação que consuma e produza updates no Twitter usando ...
Rails3 changesets
Rails3 changesets
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
21.search in laravel
21.search in laravel
Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5
Adventurous Merb
Adventurous Merb
{{components deepDive=true}}
{{components deepDive=true}}
How to develop modern web application framework
How to develop modern web application framework
Getting Started-with-Laravel
Getting Started-with-Laravel
REST API for your WP7 App
REST API for your WP7 App
以 Laravel 經驗開發 Hyperf 應用
以 Laravel 經驗開發 Hyperf 應用
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Apache Camel for Devclub.eu
Apache Camel for Devclub.eu
Silex Cheat Sheet
Silex Cheat Sheet
Andere mochten auch
Taxonomic tree of bacteria.
Taxonomic tree of bacteria.
kamran khan
PresentacióN En Clase Contenidos
PresentacióN En Clase Contenidos
monsalvecadenas
Chemoautotrophs and photosynthetic eubacteria
Chemoautotrophs and photosynthetic eubacteria
ramukhan
Photobioreactor
Photobioreactor
archana gautam
bergey'smanual
bergey'smanual
Akshay Pareek
3 Em Technology The Principles
3 Em Technology The Principles
Ridzaludin
Wind resource assessment.
Wind resource assessment.
RCREEE
Effective microorganisms
Effective microorganisms
Kavi Priya J
Biofertilizers-importance and uses
Biofertilizers-importance and uses
Sagar Bista
Importance of microorganism in agriculture
Importance of microorganism in agriculture
East West University
Classification of bacteria
Classification of bacteria
Shyam Mishra
Photo-bioreactor - Norezatul Shahirah bt Ahmad Zamanhuri
Photo-bioreactor - Norezatul Shahirah bt Ahmad Zamanhuri
Khaleeda Karim
Biofertilizer
Biofertilizer
Alia Najiha
Andere mochten auch
(13)
Taxonomic tree of bacteria.
Taxonomic tree of bacteria.
PresentacióN En Clase Contenidos
PresentacióN En Clase Contenidos
Chemoautotrophs and photosynthetic eubacteria
Chemoautotrophs and photosynthetic eubacteria
Photobioreactor
Photobioreactor
bergey'smanual
bergey'smanual
3 Em Technology The Principles
3 Em Technology The Principles
Wind resource assessment.
Wind resource assessment.
Effective microorganisms
Effective microorganisms
Biofertilizers-importance and uses
Biofertilizers-importance and uses
Importance of microorganism in agriculture
Importance of microorganism in agriculture
Classification of bacteria
Classification of bacteria
Photo-bioreactor - Norezatul Shahirah bt Ahmad Zamanhuri
Photo-bioreactor - Norezatul Shahirah bt Ahmad Zamanhuri
Biofertilizer
Biofertilizer
Ähnlich wie 1時間で作るマッシュアップサービス(関西版)
Play vs Rails
Play vs Rails
Daniel Cukier
Integrating Flex And Rails With Ruby Amf
Integrating Flex And Rails With Ruby Amf
railsconf
Flex With Rubyamf
Flex With Rubyamf
Tony Hillerson
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Tatsuhiko Miyagawa
Design Summit - Rails 4 Migration - Aaron Patterson
Design Summit - Rails 4 Migration - Aaron Patterson
ManageIQ
I Phone On Rails
I Phone On Rails
John Wilker
QConSP 2015 - Dicas de Performance para Aplicações Web
QConSP 2015 - Dicas de Performance para Aplicações Web
Fabio Akita
Oracle APEX migration to 5.1 - Our experience
Oracle APEX migration to 5.1 - Our experience
Lino Schildenfeld
Intro to Rack
Intro to Rack
Rubyc Slides
RxJS Operators - Real World Use Cases (FULL VERSION)
RxJS Operators - Real World Use Cases (FULL VERSION)
Tracy Lee
How to quickly make REST APIs with CompoundJS
How to quickly make REST APIs with CompoundJS
Frank Rousseau
Future of Web Apps: Google Gears
Future of Web Apps: Google Gears
dion
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Paulo Ragonha
Advanced RESTful Rails
Advanced RESTful Rails
Viget Labs
Advanced RESTful Rails
Advanced RESTful Rails
Ben Scofield
Cross Domain Web Mashups with JQuery and Google App Engine
Cross Domain Web Mashups with JQuery and Google App Engine
Andy McKay
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011
Nick Sieger
Burn down the silos! Helping dev and ops gel on high availability websites
Burn down the silos! Helping dev and ops gel on high availability websites
Lindsay Holmwood
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Provectus
Intro to-rails-webperf
Intro to-rails-webperf
New Relic
Ähnlich wie 1時間で作るマッシュアップサービス(関西版)
(20)
Play vs Rails
Play vs Rails
Integrating Flex And Rails With Ruby Amf
Integrating Flex And Rails With Ruby Amf
Flex With Rubyamf
Flex With Rubyamf
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Design Summit - Rails 4 Migration - Aaron Patterson
Design Summit - Rails 4 Migration - Aaron Patterson
I Phone On Rails
I Phone On Rails
QConSP 2015 - Dicas de Performance para Aplicações Web
QConSP 2015 - Dicas de Performance para Aplicações Web
Oracle APEX migration to 5.1 - Our experience
Oracle APEX migration to 5.1 - Our experience
Intro to Rack
Intro to Rack
RxJS Operators - Real World Use Cases (FULL VERSION)
RxJS Operators - Real World Use Cases (FULL VERSION)
How to quickly make REST APIs with CompoundJS
How to quickly make REST APIs with CompoundJS
Future of Web Apps: Google Gears
Future of Web Apps: Google Gears
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Advanced RESTful Rails
Advanced RESTful Rails
Advanced RESTful Rails
Advanced RESTful Rails
Cross Domain Web Mashups with JQuery and Google App Engine
Cross Domain Web Mashups with JQuery and Google App Engine
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011
Burn down the silos! Helping dev and ops gel on high availability websites
Burn down the silos! Helping dev and ops gel on high availability websites
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Intro to-rails-webperf
Intro to-rails-webperf
Mehr von Yuichiro MASUI
AIR+Blaze+Ruby
AIR+Blaze+Ruby
Yuichiro MASUI
マッシュアップ沖縄版 おまけ:OpenSocail
マッシュアップ沖縄版 おまけ:OpenSocail
Yuichiro MASUI
Rails 1H
Rails 1H
Yuichiro MASUI
2007/09/29 PHP to Rails - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
2007/09/29 PHP to Rails - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
Yuichiro MASUI
2007/09/29 PHP to Ruby - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
2007/09/29 PHP to Ruby - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
Yuichiro MASUI
Railsチュートリアル
Railsチュートリアル
Yuichiro MASUI
InstantRails how to
InstantRails how to
Yuichiro MASUI
Rubyの基礎
Rubyの基礎
Yuichiro MASUI
PukiWiki
PukiWiki
Yuichiro MASUI
Masuidrive Working Style
Masuidrive Working Style
Yuichiro MASUI
Ruby de Rails
Ruby de Rails
Yuichiro MASUI
How to build 1 hour mashup site
How to build 1 hour mashup site
Yuichiro MASUI
Furo Grammer
Furo Grammer
Yuichiro MASUI
Mehr von Yuichiro MASUI
(13)
AIR+Blaze+Ruby
AIR+Blaze+Ruby
マッシュアップ沖縄版 おまけ:OpenSocail
マッシュアップ沖縄版 おまけ:OpenSocail
Rails 1H
Rails 1H
2007/09/29 PHP to Rails - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
2007/09/29 PHP to Rails - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
2007/09/29 PHP to Ruby - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
2007/09/29 PHP to Ruby - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”
Railsチュートリアル
Railsチュートリアル
InstantRails how to
InstantRails how to
Rubyの基礎
Rubyの基礎
PukiWiki
PukiWiki
Masuidrive Working Style
Masuidrive Working Style
Ruby de Rails
Ruby de Rails
How to build 1 hour mashup site
How to build 1 hour mashup site
Furo Grammer
Furo Grammer
Kürzlich hochgeladen
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Remote DBA Services
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Product Anonymous
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Zilliz
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
apidays
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Sandro Moreira
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
Kürzlich hochgeladen
(20)
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Architecting Cloud Native Applications
Architecting Cloud Native Applications
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
1時間で作るマッシュアップサービス(関西版)
1.
2.
3.
↓Macbook pro
4.
↓Macbook pro
Not
5.
1
6.
Rails
7.
Mashup
8.
9.
Mashup
10.
11.
Remix
12.
Remix
13.
Mashup
14.
15.
16.
Mashup
17.
18.
Mashup
19.
20.
21.
HTML
22.
23.
API
24.
25.
Web2.0
26.
27.
28.
29.
30.
31.
WebAPI
32.
WebAPI
33.
3
34.
35.
RSS Amazon Web Service
Google net
36.
37.
38.
39.
40.
→MP3
41.
42.
43.
Google Maps NIFTY Timeline
API
44.
45.
API MVC M V
46.
Controller
47.
48.
PHP, Perl, Ruby,
Java....
49.
PHP
50.
Ruby on Rails
51.
52.
Web2.0
53.
WebAPI ActiveResource
54.
Rails2.0
55.
Rails2.0
56.
ActiveResource
57.
Rails
Rails
58.
59.
Mashup
60.
OSC-Do blog
61.
62.
WebAPI
63.
64.
Kansai
65.
66.
67.
68.
API
69.
70.
API
71.
API URL
72.
http://jws.jalan.net/APICommon/
OnsenSearch/V1/? key=**********&l_area=010802 &count=1&xml_ptn=1
73.
XML
74.
75.
76.
Rails
77.
78.
require 'net/http' require 'cgi' require
'rexml/document' class Onsen attr_accessor :address, :name, :id KEY = 'phe11375af71ba' URL = 'http://jws.jalan.net/APICommon/OnsenSearch/V1/?' def self.find(params) results = [] get(params).elements.each('Results/Onsen') do |el| results << Onsen.new(el.elements[quot;OnsenIDquot;].text, el.elements[quot;OnsenNamequot;].text, el.elements [quot;OnsenAddressquot;].text) end results end def self.url(params) params[:key] = KEY URI.parse(URL+((params.map { |key,value| quot;#{key}=#{CGI::escape(value.to_s)}quot;}).join('&'))) end def self.get(params) REXML::Document.new(Net::HTTP.get(url(params))) end def initialize(id, name, address) @id, @name, @address = id, name, address end end
79.
API
80.
81.
Web
82.
83.
irb> puts Onsen.find(:count
=> 10, :pref => '260000').map{|o| o.name}.join(',') => , , , , , , , , ,
84.
Google Map
85.
Ruby
86.
YM4R/GM
87.
GoogleMaps API Rails
88.
$ rails onsen
-d sqlite3 $ cd onsen $ script/plugin install svn://rubyforge.org/var/svn/ym4r/Plugins/GM/trunk/ym4r_gm $ ./script/generate controller onsen index
89.
Onsen lib/onsen.rb
90.
class OnsenController <
ApplicationController def index @map = GMap.new(quot;map_divquot;) @map.control_init :large_map => true, :map_type => true @map.center_zoom_init([35.400245,135.42572], 9) end end
91.
<html> <head> <%= GMap.header %> <%=
@map.to_html %> </head> <body> <%= @map.div(:width => 600, :height => 400) %> </body> </html>
92.
93.
94.
95.
Google Maps
96.
API
97.
98.
99.
Google Maps API
100.
YM4R/GM
101.
102.
irb> kyoto =
Geocoding.get(‘ ’) irb> kyoto.first.latlon => [34.985458, 135.757755]
103.
Onsen
104.
class Onsen def
latlon Geocoding.get(@address).first.latlon end end
105.
Google
106.
107.
class Onsen def
latlon Geocoding.get(@address.gsub(/( | | ).{1,5} /,'¥¥1')).first.latlon end end
108.
2
API Mashup
109.
110.
class OnsenController <
ApplicationController def index @map = GMap.new(quot;map_divquot;) @map.control_init(:large_map => true, :map_type => true) @map.center_zoom_init([35.400245,135.42572], 9) return Onsen.find(:count => 50, :pref => '260000').each do |o| begin marker = GMarker.new( o.latlon, :title => o.name, :info_window => render_to_string( :partial => 'point', :locals => { :onsen => o }) ) @map.overlay_init(marker) rescue end end end
111.
HTML
112.
<div><strong><%=h onsen.name %></strong></div> <div><%=h
onsen.address %></div>
113.
114.
115.
116.
117.
Flickr
118.
119.
WebAPI
120.
Ruby
121.
122.
API
123.
124.
Yahoo Web
125.
126.
127.
128.
129.
http://api.search.yahoo.co.jp/
ImageSearchService/V1/ imageSearch? appid=YahooDemo&results=1& query=
130.
131.
Onsen
132.
class Onsen def
photo Onsen.get({ :appid=>'kyotoonsen', :query=>@name.gsub(/ ¥(.*/,''), :results => 1}, quot;http://api.searc........rch?quot; ).elements['/ResultSet/Result/Thumbnail/ Url'].text end end
133.
134.
135.
<div><strong><%=h onsen.name %></strong></div> <div><%=h
onsen.address %></div> <div style=quot;height: 120pxquot;> <%= image_tag(onsen.photo) rescue 'No photo' %> </div>
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
acts_as_commentable
147.
148.
jpmobile
149.
150.
http://blog.masuidrive.jp/
Jetzt herunterladen