SlideShare uma empresa Scribd logo
1 de 49
Baixar para ler offline
GeoHex
               Part 1   GeoHex
               Part




                          @sa2da #geohex
                           http://geohex.net/

2010   9   4
Part 1   GeoHex




2010   9   4
GeoHex



2010   9   4
Hex



2010   9   4
CC BY-SA Original uploader was Merdal at tr.wikipedia




                                                                       Plate XIX of "Studies among the Snow Crystals ... " by Wilson Bentley,
                                                                       "The Snowflake Man." From Annual Summary of the "Monthly Weather
                                                                       Review" for 1902.

2010   9   4
1          3
                   (Regular Tessellation)




                              via. wikipedia




2010   9   4
GeoHex



2010   9   4
2010   9   4
2010   9   4
※GoogleMaps
2010   9   4
GeoHex


                        VS


               GeoHex        GeoHex

2010   9   4
01




                   →       UI




               ↑
                       ↑
2010   9   4
02




                  →




               1 : 1.41   1:1
2010   9   4
03




               →




2010   9   4
04




                         →GoogleMaps




               Level:0                 Level:24
2010   9   4
05




                 →
                 →URL        Twitter /




               20 byte
                         3 - 11 byte
2010   9   4
06




                          →




               function getDistance(_x1,_y1, _x2,_y2)
               {
                  _x2 = _x2 * Math.PI / 180.0;
                  _y2 = _y2 * Math.PI / 180.0;
                  _x1 = _x1 * Math.PI / 180.0;
                  _y1 = _y1 * Math.PI / 180.0;

                   var dx=_x2-_x1;
                   var dy=_y2-_y1;
                   var A = 6378137; //                  (6378137m)




                                                                                                  A.x - B.x
                   var x = A * (dx) * Math.cos( _y1 );
                   var y = A * (dy);
                   var old_exp = exp;
                   dy=Math.log(Math.tan(Math.PI/4+_y2/2))-Math.log(Math.tan(Math.PI/4+_y1/2));
                   var rad=((dy>=0) ? 1:-1)*Math.acos(dx/Math.sqrt(dx*dx+dy*dy))*180.0/Math.PI;
                   var tmpdist = Math.round(Math.sqrt(x*x + y*y));
                   totaldist = totaldist + tmpdist;
                   distcnt();
               }



2010   9   4
07




                             →




                35.661960,139.697900
                                          132KpxU
                35.660093,139.701741        2
                         .
                         .                  3
                         .
                         .                  2
                         .                   .
                         .                   .




               20 × (n) byte           7 + (n) byte
2010   9   4
08


                               ex) for

                           →



                                         sa2da

                   sa2da




               pinpoint
                                  vague
2010   9   4
GeoHex




2010   9   4
01




                          →




               kokogiko       sa2da




2010   9   4
02




               →




2010   9   4
03




               →60
               →AR




2010   9   4
04




               →




2010   9   4
05




               →




2010   9   4
06


                                  ×GeoHex
                         →GPS          GeoHex




                       11/40




               START                            GOAL
                               1.4km            5.2km
2010   9   4
GeoHex




2010   9   4
OK
               Creative Commons License




2010   9   4
Perl
                                           kokogiko
                                           Ruby / GitHub
                                           hal_sk
                                           AS3
                                           calcul_omikan

               http://github.com/geohex/               Android
                                                       GeoHexV1
2010   9   4
PostGIS
                         ...etc
2010   9   4
Hex




                     GeoHex   GIS




2010   9   4
Part




2010   9   4
URL: http://geohex.net
2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




                  X                          Y
2010   9   4
[X,Y]
                      4592/-1634



               [X,Y] 2296/-817




2010   9   4
17m             67m


               x:168px
               y:148px

                         135m


                270m            1.1km




2010   9   4
299909,-107087
                                     4          19 - 15
                               /
               18744.312,-6692.9375
               h_x                 h_y
               18744    ,-6692
                   h_a        h_b
                   0.312,    -0.9375
                     if(h_b>-h_a){
                         if((h_b<2*h_a)&&(h_b>0.5*h_a)){
                             x = h_x + 1;
                             h = h_y + 1;
                         }
                     }else if(h_b<-h_a+1){
                         if((h_b>(2*h_a)-1)&&(h_b<(0.5*h_a)+0.5)){
                             x = h_x;
                             y = h_y;
                         }
                     }else{
                         x = h_x + Math.round(h_a);
                         Y = h_y + Math.round(h_b);
                     }



2010   9   4
Y                                     )
                       (+)                        (+
                          ←             X
                                    →Y→
                             (-   )←
                                            (-)
                   X


               (0,0)
2010   9   4
:
                               +85

                               - 85




               : +180   -180
2010   9   4
WGS84    2                                                   7   WGS84
                                        3   Google Mercator




                                            1
                                                                                            8
                                4




               4   Google Mercator
                                                              6   Google Mercator



                                    5   Hex

2010   9   4
/

               [LEVEL] 16                                [ZONE] quhN0Cn
               [X,Y] 37489/-13386


                                             uhN0Cn                                 Y:-13386
       X:37489
                                                                         13386*2+1
                   37489*2
                         3600*20+60*49+38                3600*7+60*26+13
                                        +1

                   abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ



2010   9   4
http://geohex.net/{Hex                 }/




                     ↑   http://geohex.net/quhN0Cn/

2010   9   4
1/3
                                    HTML
           GeoHex

           <script src="http://geohex.net/hex_v2.js" type="text/
           javascript" content="text/html; charset=Shift-JIS"></script>
           PROJ4    JS

           <script src="http://geohex.net/lib/proj4js.js" content="text/
           html; charset=shift-jis"></script>
           GoogleMapsAPI V3   API

           <script type="text/javascript" src="http://maps.google.com/
           maps/api/js?sensor=false"></script>

2010   9   4
2/3
           PROJ4js
           PROJ4
           initProj4js();




           ※




2010   9   4
3/3

                    →Hex
           getZoneByLocation(lattude, longitude, level);

           Hex       →Hex
           getZoneByCode(code);

           Hex              →Hex
           drawHex(object ,linecolor,fillcolor,infowindow[1:on,0:off]);


           Hex
           -code:
           -lat:
           -lon:
           -x:                     X
           -y:                     Y



2010   9   4
GeoHex

               GeoHex                       ...etc


                         @sa2da #geohex
                         sa2da@geohex.net

2010   9   4

Mais conteúdo relacionado

Mais procurados

Go1.18 Genericsを試す
Go1.18 Genericsを試すGo1.18 Genericsを試す
Go1.18 Genericsを試すasuka y
 
超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk
超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk
超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tkNetwalker lab kapper
 
Filter Media Services
Filter Media ServicesFilter Media Services
Filter Media ServicesJim McKenna
 
地理空間とOSGeoとPostGISとを簡単に紹介してみます
地理空間とOSGeoとPostGISとを簡単に紹介してみます地理空間とOSGeoとPostGISとを簡単に紹介してみます
地理空間とOSGeoとPostGISとを簡単に紹介してみますboiledorange73
 
2017-summer/Design-workshop
2017-summer/Design-workshop2017-summer/Design-workshop
2017-summer/Design-workshopshimizu junko
 
Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)
Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)
Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)Bruno Ferrari
 
PYNQ単体でUIを表示してみる(PYNQまつり)
PYNQ単体でUIを表示してみる(PYNQまつり)PYNQ単体でUIを表示してみる(PYNQまつり)
PYNQ単体でUIを表示してみる(PYNQまつり)Kenta IDA
 
WHOIS教室 〜 JPOPM36 20190621
WHOIS教室 〜 JPOPM36 20190621WHOIS教室 〜 JPOPM36 20190621
WHOIS教室 〜 JPOPM36 20190621Akira Nakagawa
 
オセロの終盤ソルバーを100倍以上高速化した話
オセロの終盤ソルバーを100倍以上高速化した話オセロの終盤ソルバーを100倍以上高速化した話
オセロの終盤ソルバーを100倍以上高速化した話京大 マイコンクラブ
 
形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta
形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta
形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfestay_taka_23
 
Javascriptで無限ループを実現する5つの方法
Javascriptで無限ループを実現する5つの方法Javascriptで無限ループを実現する5つの方法
Javascriptで無限ループを実現する5つの方法yhara
 
はじめてのWallaby.js
はじめてのWallaby.jsはじめてのWallaby.js
はじめてのWallaby.jsShunta Saito
 
Linuxでソフトシンセを作って動かす
Linuxでソフトシンセを作って動かすLinuxでソフトシンセを作って動かす
Linuxでソフトシンセを作って動かすMasahiko Kimoto
 
[공간정보연구원] 1일차 - QGIS 개요 및 기초
[공간정보연구원] 1일차 - QGIS 개요 및 기초[공간정보연구원] 1일차 - QGIS 개요 및 기초
[공간정보연구원] 1일차 - QGIS 개요 및 기초slhead1
 
PHP で実行中のスクリプトの動作を下から覗き見る
PHP で実行中のスクリプトの動作を下から覗き見るPHP で実行中のスクリプトの動作を下から覗き見る
PHP で実行中のスクリプトの動作を下から覗き見るshinjiigarashi
 
フィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleap
フィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleapフィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleap
フィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleapYahoo!デベロッパーネットワーク
 
공간정보 스터디 1주차
공간정보 스터디 1주차공간정보 스터디 1주차
공간정보 스터디 1주차Byeong-Hyeok Yu
 
SDN界隈の用語・考え方をざっくりまとめます。
SDN界隈の用語・考え方をざっくりまとめます。SDN界隈の用語・考え方をざっくりまとめます。
SDN界隈の用語・考え方をざっくりまとめます。Etsuji Nakai
 
Home NOC Operators' Group的 the Internet
Home NOC Operators' Group的 the InternetHome NOC Operators' Group的 the Internet
Home NOC Operators' Group的 the InternetTomoya Takezaki
 

Mais procurados (20)

Go1.18 Genericsを試す
Go1.18 Genericsを試すGo1.18 Genericsを試す
Go1.18 Genericsを試す
 
超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk
超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk
超激安WinタブレットにLinux、*BSDを入れて 賢く経済的にリサイクルしよう in OSC東京2018 #osc18tk
 
Filter Media Services
Filter Media ServicesFilter Media Services
Filter Media Services
 
地理空間とOSGeoとPostGISとを簡単に紹介してみます
地理空間とOSGeoとPostGISとを簡単に紹介してみます地理空間とOSGeoとPostGISとを簡単に紹介してみます
地理空間とOSGeoとPostGISとを簡単に紹介してみます
 
2017-summer/Design-workshop
2017-summer/Design-workshop2017-summer/Design-workshop
2017-summer/Design-workshop
 
Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)
Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)
Trabalho de Graduação Faculdade de Tecnologia de Ourinhos (FATEC Ourinhos)
 
PYNQ単体でUIを表示してみる(PYNQまつり)
PYNQ単体でUIを表示してみる(PYNQまつり)PYNQ単体でUIを表示してみる(PYNQまつり)
PYNQ単体でUIを表示してみる(PYNQまつり)
 
WHOIS教室 〜 JPOPM36 20190621
WHOIS教室 〜 JPOPM36 20190621WHOIS教室 〜 JPOPM36 20190621
WHOIS教室 〜 JPOPM36 20190621
 
オセロの終盤ソルバーを100倍以上高速化した話
オセロの終盤ソルバーを100倍以上高速化した話オセロの終盤ソルバーを100倍以上高速化した話
オセロの終盤ソルバーを100倍以上高速化した話
 
形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta
形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta
形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta
 
Javascriptで無限ループを実現する5つの方法
Javascriptで無限ループを実現する5つの方法Javascriptで無限ループを実現する5つの方法
Javascriptで無限ループを実現する5つの方法
 
Spazio cosenza
Spazio cosenzaSpazio cosenza
Spazio cosenza
 
はじめてのWallaby.js
はじめてのWallaby.jsはじめてのWallaby.js
はじめてのWallaby.js
 
Linuxでソフトシンセを作って動かす
Linuxでソフトシンセを作って動かすLinuxでソフトシンセを作って動かす
Linuxでソフトシンセを作って動かす
 
[공간정보연구원] 1일차 - QGIS 개요 및 기초
[공간정보연구원] 1일차 - QGIS 개요 및 기초[공간정보연구원] 1일차 - QGIS 개요 및 기초
[공간정보연구원] 1일차 - QGIS 개요 및 기초
 
PHP で実行中のスクリプトの動作を下から覗き見る
PHP で実行中のスクリプトの動作を下から覗き見るPHP で実行中のスクリプトの動作を下から覗き見る
PHP で実行中のスクリプトの動作を下から覗き見る
 
フィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleap
フィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleapフィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleap
フィッシング詐欺と如何に戦い、そして如何にして勝つか #mixleap
 
공간정보 스터디 1주차
공간정보 스터디 1주차공간정보 스터디 1주차
공간정보 스터디 1주차
 
SDN界隈の用語・考え方をざっくりまとめます。
SDN界隈の用語・考え方をざっくりまとめます。SDN界隈の用語・考え方をざっくりまとめます。
SDN界隈の用語・考え方をざっくりまとめます。
 
Home NOC Operators' Group的 the Internet
Home NOC Operators' Group的 the InternetHome NOC Operators' Group的 the Internet
Home NOC Operators' Group的 the Internet
 

Mais de Tadayasu Sasada

ココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAPココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAPTadayasu Sasada
 
ここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAPここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAPTadayasu Sasada
 
HTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHexHTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHexTadayasu Sasada
 
GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo Tadayasu Sasada
 

Mais de Tadayasu Sasada (7)

ココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAPココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAP
 
ここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAPここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAP
 
HTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHexHTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHex
 
GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo
 
About GeoHex
About GeoHexAbout GeoHex
About GeoHex
 
Geohex v2 at GMS_nagoya
Geohex v2 at GMS_nagoyaGeohex v2 at GMS_nagoya
Geohex v2 at GMS_nagoya
 
Geohex at Off4g2009
Geohex at Off4g2009Geohex at Off4g2009
Geohex at Off4g2009
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Geohex 20100903

  • 1. GeoHex Part 1 GeoHex Part @sa2da #geohex http://geohex.net/ 2010 9 4
  • 2. Part 1 GeoHex 2010 9 4
  • 4. Hex 2010 9 4
  • 5. CC BY-SA Original uploader was Merdal at tr.wikipedia Plate XIX of "Studies among the Snow Crystals ... " by Wilson Bentley, "The Snowflake Man." From Annual Summary of the "Monthly Weather Review" for 1902. 2010 9 4
  • 6. 1 3 (Regular Tessellation) via. wikipedia 2010 9 4
  • 8. 2010 9 4
  • 9. 2010 9 4
  • 11. GeoHex VS GeoHex GeoHex 2010 9 4
  • 12. 01 → UI ↑ ↑ 2010 9 4
  • 13. 02 → 1 : 1.41 1:1 2010 9 4
  • 14. 03 → 2010 9 4
  • 15. 04 →GoogleMaps Level:0 Level:24 2010 9 4
  • 16. 05 → →URL Twitter / 20 byte 3 - 11 byte 2010 9 4
  • 17. 06 → function getDistance(_x1,_y1, _x2,_y2) { _x2 = _x2 * Math.PI / 180.0; _y2 = _y2 * Math.PI / 180.0; _x1 = _x1 * Math.PI / 180.0; _y1 = _y1 * Math.PI / 180.0; var dx=_x2-_x1; var dy=_y2-_y1; var A = 6378137; // (6378137m) A.x - B.x var x = A * (dx) * Math.cos( _y1 ); var y = A * (dy); var old_exp = exp; dy=Math.log(Math.tan(Math.PI/4+_y2/2))-Math.log(Math.tan(Math.PI/4+_y1/2)); var rad=((dy>=0) ? 1:-1)*Math.acos(dx/Math.sqrt(dx*dx+dy*dy))*180.0/Math.PI; var tmpdist = Math.round(Math.sqrt(x*x + y*y)); totaldist = totaldist + tmpdist; distcnt(); } 2010 9 4
  • 18. 07 → 35.661960,139.697900 132KpxU 35.660093,139.701741 2 . . 3 . . 2 . . . . 20 × (n) byte 7 + (n) byte 2010 9 4
  • 19. 08 ex) for → sa2da sa2da pinpoint vague 2010 9 4
  • 20. GeoHex 2010 9 4
  • 21. 01 → kokogiko sa2da 2010 9 4
  • 22. 02 → 2010 9 4
  • 23. 03 →60 →AR 2010 9 4
  • 24. 04 → 2010 9 4
  • 25. 05 → 2010 9 4
  • 26. 06 ×GeoHex →GPS GeoHex 11/40 START GOAL 1.4km 5.2km 2010 9 4
  • 27. GeoHex 2010 9 4
  • 28. OK Creative Commons License 2010 9 4
  • 29. Perl kokogiko Ruby / GitHub hal_sk AS3 calcul_omikan http://github.com/geohex/ Android GeoHexV1 2010 9 4
  • 30. PostGIS ...etc 2010 9 4
  • 31. Hex GeoHex GIS 2010 9 4
  • 32. Part 2010 9 4
  • 34. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 2010 9 4
  • 35. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 2010 9 4
  • 36. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 2010 9 4
  • 37. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 X Y 2010 9 4
  • 38. [X,Y] 4592/-1634 [X,Y] 2296/-817 2010 9 4
  • 39. 17m 67m x:168px y:148px 135m 270m 1.1km 2010 9 4
  • 40. 299909,-107087 4 19 - 15 / 18744.312,-6692.9375 h_x h_y 18744 ,-6692 h_a h_b 0.312, -0.9375 if(h_b>-h_a){ if((h_b<2*h_a)&&(h_b>0.5*h_a)){ x = h_x + 1; h = h_y + 1; } }else if(h_b<-h_a+1){ if((h_b>(2*h_a)-1)&&(h_b<(0.5*h_a)+0.5)){ x = h_x; y = h_y; } }else{ x = h_x + Math.round(h_a); Y = h_y + Math.round(h_b); } 2010 9 4
  • 41. Y ) (+) (+ ← X →Y→ (- )← (-) X (0,0) 2010 9 4
  • 42. : +85 - 85 : +180 -180 2010 9 4
  • 43. WGS84 2 7 WGS84 3 Google Mercator 1 8 4 4 Google Mercator 6 Google Mercator 5 Hex 2010 9 4
  • 44. / [LEVEL] 16 [ZONE] quhN0Cn [X,Y] 37489/-13386 uhN0Cn Y:-13386 X:37489 13386*2+1 37489*2 3600*20+60*49+38 3600*7+60*26+13 +1 abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 2010 9 4
  • 45. http://geohex.net/{Hex }/ ↑ http://geohex.net/quhN0Cn/ 2010 9 4
  • 46. 1/3 HTML GeoHex <script src="http://geohex.net/hex_v2.js" type="text/ javascript" content="text/html; charset=Shift-JIS"></script> PROJ4 JS <script src="http://geohex.net/lib/proj4js.js" content="text/ html; charset=shift-jis"></script> GoogleMapsAPI V3 API <script type="text/javascript" src="http://maps.google.com/ maps/api/js?sensor=false"></script> 2010 9 4
  • 47. 2/3 PROJ4js PROJ4 initProj4js(); ※ 2010 9 4
  • 48. 3/3 →Hex getZoneByLocation(lattude, longitude, level); Hex →Hex getZoneByCode(code); Hex →Hex drawHex(object ,linecolor,fillcolor,infowindow[1:on,0:off]); Hex -code: -lat: -lon: -x: X -y: Y 2010 9 4
  • 49. GeoHex GeoHex ...etc @sa2da #geohex sa2da@geohex.net 2010 9 4