マッシュアップ沖縄版 おまけ:OpenSocail

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    マッシュアップ沖縄版 おまけ:OpenSocail - Presentation Transcript

    1. 1 45
    2. WebAPI & mashup
    3. mixi OpenSocial
    4. Rails
    5. Mashup
    6. Mashup
    7. Remix
    8. Remix
    9. Mashup
    10. Mashup
    11. Mashup
    12. HTML
    13. API
    14. Web2.0
    15. WebAPI
    16. WebAPI
    17. 3
    18. RSS Amazon Web Service Google net
    19. →MP3
    20. Google Maps NIFTY Timeline API
    21. API MVC M V
    22. Controller
    23. PHP, Perl, Ruby, Java....
    24. PHP
    25. Ruby on Rails
    26. Web2.0
    27. WebAPI ActiveResource
    28. Rails2.0
    29. Rails2.0
    30. ActiveResource
    31. Rails Rails
    32. Mashup
    33. OSC-Do blog
    34. WebAPI
    35. API
    36. API
    37. API
    38. API URL
    39. http://api.gnavi.co.jp/ver1/ RestSearchAPI/? keyid=****&pref=PREF47&name =
    40. XML
    41. Rails
    42. require 'net/http' require 'cgi' require 'rexml/document' class GNavi attr_accessor :address, :name, :id, :lat, :lon KEY = '4e900eb4fa92d4765040993687cdfe53' URL = 'http://api.gnavi.co.jp/ver1/RestSearchAPI/?' def self.find(params) results = [] get(params).elements.each('response/rest') do |el| results << self.new(el.elements[\"id\"].text, el.elements[\"name\"].text, el.elements[\"address\"].text, el.elements[\"latitude\"].text, el.elements[\"longitude\"].text) end results end def self.url(params) params[:keyid] = KEY URI.parse(URL+((params.map { |key,value| \"#{key}=#{CGI::escape(value.to_s)}\"}).join('&'))) end def self.get(params) REXML::Document.new(Net::HTTP.get(url(params))) end def initialize(id, name, address, lat, lon) @id, @name, @address, @lat, @lon = id, name, address, lat, lon end end
    43. API
    44. Web
    45. irb> puts GNavi.find(:pref=>'PREF47', :name=>' ').map{|o| o.name}.join(',') => <br> , <br> , <br> , , , <BR> , ,
    46. Google Map
    47. Ruby
    48. YM4R/GM
    49. GoogleMaps API Rails
    50. $ rails okinawa -d sqlite3 $ cd okinawa $ script/plugin install \\ svn://rubyforge.org/var/svn/ym4r/Plugins/GM/trunk/ym4r_gm $ ./script/generate controller soba index
    51. GNavi lib/gnavi.rb
    52. class SobaController < ApplicationController def index @map = GMap.new(\"map_div\") @map.control_init :large_map => true, :map_type => true @map.center_zoom_init([26.21332,127.689843], 12) end end
    53. <html> <head> <%= GMap.header %> <%= @map.to_html %> </head> <body> <%= @map.div(:width => 600, :height => 400) %> </body> </html>
    54. class SobaController < ApplicationController def index @map = GMap.new(\"map_div\") @map.control_init(:large_map => true, :map_type => true) @map.center_zoom_init([26.21332,127.689843], 12) GNavi.find(:pref=>'PREF47', :name=>' ').each do |o| begin marker = GMarker.new( [o.lat, o.lon], :title => o.name, :info_window => render_to_string( :partial => 'point', :locals => { :soba => o }) ) @map.overlay_init(marker) rescue end end end
    55. HTML
    56. <div><strong><%= soba.name %></strong></div> <div><%=h soba.address %></div>
    57. acts_as_commentable
    58. jpmobile
    59. WebAPI
    60. OpenSocial
    61. mixi SNS ebAPI
    62. blog
    63. SNS
    64. ↓ SNS
    65. OpenSocial 2 WebAPI
    66. HTTP WebAPI
    67. Google Gadget JavaScript API
    68. JavaScript API
    69. XML
    70. <?xml version=\"1.0\" encoding=\"UTF-8\" ?> <Module> <ModulePrefs title=\"Example\"> <Require feature=\"opensocial-0.5\"/> </ModulePrefs> <Content type=\"html\"> <![CDATA[ ]]> </Content> </Module>
    71. URL SNS
    72. mixi orkut
    73. XML URL orkut
    74. HTML JavaScript
    75. OpenSocial
    76. SNS JavaScript
    77. OpenSocial 3
    78. People Data
    79. Activity Data
    80. SNS Persistence Data
    81. Activity SNS
    82. SNS
    83. People Data API
    84. URL
    85. SNS Google Maps
    86. API
    87. mixi
    88. twitter
    89. 2008 SNS
    90. http://blog.masuidrive.jp/

    + masuidrivemasuidrive, 2 years ago

    custom

    3345 views, 1 favs, 4 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3345
      • 2975 on SlideShare
      • 370 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 169
    Most viewed embeds
    • 367 views on http://blog.masuidrive.jp
    • 1 views on http://feedpath.jp
    • 1 views on http://translate.ocn.ne.jp
    • 1 views on http://jp2sc.mojolingo.com.tw

    more

    All embeds
    • 367 views on http://blog.masuidrive.jp
    • 1 views on http://feedpath.jp
    • 1 views on http://translate.ocn.ne.jp
    • 1 views on http://jp2sc.mojolingo.com.tw

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories