SlideShare uma empresa Scribd logo
1 de 22
make.opendata.ch




GeoAdmin API




Cédric Moullet
geo.admin.ch / swisstopo
Law

 Federal Act on Geoinformation (GeoIG), 1. Juli 2008
 Art. 1 Aim
 This Act has the aim of ensuring that geodata relating
 to the territory of the Swiss Confederation is made
 available for general use to the authorities of the
 Confederation, the cantons and communes, the private
 sector, the public and to academic and scientific
 institutions in a sustainable, up-to-date, rapid
 and easy manner, in the required quality and at a
 reasonable cost.
                                                   Picture by floofy
How
did we achieve this
Open Access
Open Standards
Open Source Software




Access not ownership is where
all content is going… (Kevin Kelly)
                                 Picture by ul_Marga
Architecture
API Architecture




                                                    mobile.geo.admin.ch
map.geo.admin.ch




                                  revision
                   globe

                           tsm



                                              are
                           API                                            Mobile API

                                             GeoServices

                                 Data (Tiles / Databases)
API Architecture: data

  • Tiles delivered with WMTS RESTFul: View
     • For vector
     • For raster
  • Database: Data access
     • For vector ;-)




http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#wmts
API Architecture:
                Geoservices
  • REST Services
    • Geocoding
    • Reverse geocoding
    • Feature
    • Profile
    • Height

http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#swisssearch-geocoding
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#swisssearch-reversegeocoding
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#feature
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#profile-json
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#height
API Architecture:
        API
<script type="text/javascript">
  function init() {
    var api = new GeoAdmin.API();
    api.createMap({
       div: "mymap1"
    });
  }
</script>
<body onload="init();">
 <div id="mymap1" style="width:500px;height:340px;border:1px solid grey;padding: 0 0 0
0;margin:10px !important;"></div>
 <script type="text/javascript" src="http://api.geo.admin.ch/loader.js"></script>
</body>


                                      GeoAdmin API

                                            GeoExt

               OpenLayers                                           ExtJS 3.4
API Architecture:
              Mobile API
Ext.setup({
       onReady: function(){
         m = new GeoAdminMobile.Map({handedness: 'right',
             contextinfo: true,
             featureinfo: true
         });

              var wmts2 = GeoAdmin.layers.buildLayerByName
                          ("ch.bfs.gebaeude_wohnungs_register",
                          {isBaseLayer: false});
              m.map.addLayers([wmts2]);
          }
    });


                                   GeoAdmin Mobile API

                                   GeoExt Mobile (GXM)

                   OpenLayers                                     Sencha Touch
Mashups ?
•   Permalink (WMS – KML (doc) - Address)
•   StreetView
•   GeoCoder
•   Routing
•   GoogleEarth
•   GPX
•   REST API
•   All the power of OpenLayers and ExtJS
http://map.geo.admin.ch/?Y=539275&X=182725&zoom=7&bgLayer=ch.swisstopo.pixelkarte-
farbe&layers=WMS%7C%7COrthophoto%20Yverdon%20banquise%20(22.02.2012)%7C%7Chttp://ogc.heig-vd.ch/mapserver/wms?%7C%7Cr-
pod_yverdon_banquise-2&layers_opacity=1
http://map.geo.admin.ch/?Y=541750&X=163000&zoom=5&bgLayer=ch.swisstopo.pixelkarte-
farbe&layers=KML%7C%7Chttps://docs.google.com/uc?id=0B_gmqEgDEiu5OGY0MDhmNmYtNTA5YS00MzVlLWI4ZWUtMzc1NzU4ZjU3NmM3&
layers_opacity=1&layers_visibility=true
http://www.geo.admin.ch/internet/geoportal/fr/commons/help/viewer_help.html#parsys_95922
http://map.geo.admin.ch/?swisssearch=berges%2037%20payerne
http://api.geo.admin.ch/main/wsgi/doc/build/api/streetview.html
http://api.geo.admin.ch/main/wsgi/doc/build/api/geocoder.html
http://api.geo.admin.ch/main/wsgi/doc/build/api/routing.html
http://sitn.ne.ch/
http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapiexamples4.html
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html
http://www.openlayers.org/
Documentation

•     API Generator
•     API
•     Mobile API
•     FAQ




http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapigenerator.html
http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapidoc.html
http://api.geo.admin.ch/main/wsgi/doc/build/api/sdimapidoc.html
http://api.geo.admin.ch/main/wsgi/doc/build/api/faq/index.html
Terms of use

• Terms of use
• GeoAdmin API is completely free and open
• All layers, except data of swisstopo web access WMTS,
  can be used freely. 25’000 MegaPixels are free.
• Domain registration is required (…one work week…)




http://www.geo.admin.ch/internet/geoportal/en/home/geoadmin/contact.html
http://api.geo.admin.ch/main/wsgi/doc/build/api/faq/index.html#which-layers-are-available
http://www.swisstopo.admin.ch/internet/swisstopo/fr/home/products/services/web_services/webaccess.html
Tips and tricks

•    Develop with localhost
•    Use the mailing lists
•    Always test on IE ;-)
•    Use Google Chrome for mobile development (mobile=true)
•    You need the source code ? Just ask !

• All stations http://www.bav.admin.ch/dokumentation/publikationen/00475/01497/index.html?lang=fr
• Hiking trails
http://map.geo.admin.ch/?Y=660000&X=190000&zoom=1&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.vec25-
wander&layers_opacity=1&layers_visibility=true&lang=en

• Road network
http://map.geo.admin.ch/?Y=660000&X=190000&zoom=1&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.vec25-
strassennetz&layers_opacity=1&layers_visibility=true&lang=en

• Historical routes
http://map.geo.admin.ch/?Y=660000&X=190000&zoom=1&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.astra.ivs-
reg_loc&layers_opacity=1&layers_visibility=true&lang=en

• Traffic counting stations (see tooltips)
Mobile
Technology
Mobile App




Mobile Website
Why HTML5 ?

•   Not proprietary
•   No browser dependence
•   Advanced functions within browser
•   Standardardized API: Geolocation – Canvas –
    Appcache - etc..

HTML5 test: http://html5test.com/

http://www.html5rocks.com/
Perspective
Perspective ?

• 3D: WebGL
• 4D: Historical data view
• Offline
..and it works!
some awards:




                  Picture by swisstopo
Thank you for your attention
and welcome to www.geo.admin.ch

Mais conteúdo relacionado

Destaque (7)

OpenLayers 3 Alpha - Introduction - 2013
OpenLayers 3 Alpha - Introduction - 2013OpenLayers 3 Alpha - Introduction - 2013
OpenLayers 3 Alpha - Introduction - 2013
 
Open Access and/or Open Data - geo.admin.ch - 2013
Open Access and/or Open Data - geo.admin.ch - 2013Open Access and/or Open Data - geo.admin.ch - 2013
Open Access and/or Open Data - geo.admin.ch - 2013
 
OpenLayers 3 Crowdfunding - FOSS4G - 2013
OpenLayers 3 Crowdfunding - FOSS4G - 2013OpenLayers 3 Crowdfunding - FOSS4G - 2013
OpenLayers 3 Crowdfunding - FOSS4G - 2013
 
Open Source development funding. OpenLayers 3 - 2013
Open Source development funding. OpenLayers 3 - 2013Open Source development funding. OpenLayers 3 - 2013
Open Source development funding. OpenLayers 3 - 2013
 
GeoWeb: overview of services and functions, 2010
GeoWeb: overview of services and functions, 2010GeoWeb: overview of services and functions, 2010
GeoWeb: overview of services and functions, 2010
 
map.geo.admin.ch: contenu et évolution technologique
map.geo.admin.ch:  contenu et évolution technologiquemap.geo.admin.ch:  contenu et évolution technologique
map.geo.admin.ch: contenu et évolution technologique
 
User Centered Design for map.geo.admin.ch - FOSS4G - 2013
User Centered Design for map.geo.admin.ch - FOSS4G - 2013User Centered Design for map.geo.admin.ch - FOSS4G - 2013
User Centered Design for map.geo.admin.ch - FOSS4G - 2013
 

Semelhante a GeoAdmin API & Mobile API, 2012

Geolocation on Rails
Geolocation on RailsGeolocation on Rails
Geolocation on Rails
nebirhos
 
Web enabling your survey business ppt version
Web enabling your survey business ppt versionWeb enabling your survey business ppt version
Web enabling your survey business ppt version
rudy_stricklan
 
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
Pere Roca Ristol
 
Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033
Editor IJARCET
 
Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033
Editor IJARCET
 
Drupal and the GeoSpatial Web
Drupal and the GeoSpatial WebDrupal and the GeoSpatial Web
Drupal and the GeoSpatial Web
Andrew Turner
 

Semelhante a GeoAdmin API & Mobile API, 2012 (20)

Building a ArcGIS mobile, cloud, checkin app in 75 minutes - zero to hero
Building a ArcGIS mobile, cloud, checkin app in 75 minutes - zero to heroBuilding a ArcGIS mobile, cloud, checkin app in 75 minutes - zero to hero
Building a ArcGIS mobile, cloud, checkin app in 75 minutes - zero to hero
 
Building a mobile, cloud, checkin app in 75 minutes - zero to hero.
Building a mobile, cloud, checkin app in 75 minutes -  zero to hero.Building a mobile, cloud, checkin app in 75 minutes -  zero to hero.
Building a mobile, cloud, checkin app in 75 minutes - zero to hero.
 
Overview of MassGIS Web Mapping Services
Overview of MassGIS Web Mapping ServicesOverview of MassGIS Web Mapping Services
Overview of MassGIS Web Mapping Services
 
Geolocation on Rails
Geolocation on RailsGeolocation on Rails
Geolocation on Rails
 
Web enabling your survey business ppt version
Web enabling your survey business ppt versionWeb enabling your survey business ppt version
Web enabling your survey business ppt version
 
MapStore Create, save and share maps and mashups @ GRASS-GFOSS 2013
MapStore Create, save and share maps and mashups @ GRASS-GFOSS 2013MapStore Create, save and share maps and mashups @ GRASS-GFOSS 2013
MapStore Create, save and share maps and mashups @ GRASS-GFOSS 2013
 
Web2.0 @ Web Mapping
Web2.0 @ Web MappingWeb2.0 @ Web Mapping
Web2.0 @ Web Mapping
 
The User-participated Geospatial Web as Open Platform
The User-participated Geospatial Web as Open PlatformThe User-participated Geospatial Web as Open Platform
The User-participated Geospatial Web as Open Platform
 
Adding where to your ruby apps
Adding where to your ruby appsAdding where to your ruby apps
Adding where to your ruby apps
 
Overview of Geomajas plug-ins and faces
Overview of Geomajas plug-ins and facesOverview of Geomajas plug-ins and faces
Overview of Geomajas plug-ins and faces
 
ArcGIS API for Javascript Tutorial
ArcGIS API for Javascript TutorialArcGIS API for Javascript Tutorial
ArcGIS API for Javascript Tutorial
 
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
 
Mapstraction
MapstractionMapstraction
Mapstraction
 
Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033
 
Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033Volume 2-issue-6-2030-2033
Volume 2-issue-6-2030-2033
 
Open@EDINA
Open@EDINAOpen@EDINA
Open@EDINA
 
Drupal and the GeoSpatial Web
Drupal and the GeoSpatial WebDrupal and the GeoSpatial Web
Drupal and the GeoSpatial Web
 
Geonode 2.0
Geonode 2.0Geonode 2.0
Geonode 2.0
 
Using geobrowsers for thematic mapping
Using geobrowsers for thematic mappingUsing geobrowsers for thematic mapping
Using geobrowsers for thematic mapping
 
GIS 2.0 and Neogeography
GIS 2.0 and NeogeographyGIS 2.0 and Neogeography
GIS 2.0 and Neogeography
 

Mais de Moullet

Spatial data infrastructure in the cloud, 2011
Spatial data infrastructure in the cloud, 2011Spatial data infrastructure in the cloud, 2011
Spatial data infrastructure in the cloud, 2011
Moullet
 
Open Addresses Help
Open Addresses HelpOpen Addresses Help
Open Addresses Help
Moullet
 

Mais de Moullet (19)

Redesign of map.geo.admin.ch - 2013
Redesign of map.geo.admin.ch - 2013Redesign of map.geo.admin.ch - 2013
Redesign of map.geo.admin.ch - 2013
 
PLR Payerne Assemblée Générale 2013
PLR Payerne Assemblée Générale 2013PLR Payerne Assemblée Générale 2013
PLR Payerne Assemblée Générale 2013
 
Cloud Computing & Spatial Data Infrastructure - 2012
Cloud Computing & Spatial Data Infrastructure - 2012Cloud Computing & Spatial Data Infrastructure - 2012
Cloud Computing & Spatial Data Infrastructure - 2012
 
Web mapping with vector data. Is it the future ? 2012
Web mapping with vector data. Is it the future ? 2012Web mapping with vector data. Is it the future ? 2012
Web mapping with vector data. Is it the future ? 2012
 
How to use the maps of geo.admin.ch ? 2012
How to use the maps of geo.admin.ch ? 2012How to use the maps of geo.admin.ch ? 2012
How to use the maps of geo.admin.ch ? 2012
 
GeoAdmin API & Open*, 2012
GeoAdmin API & Open*, 2012GeoAdmin API & Open*, 2012
GeoAdmin API & Open*, 2012
 
PLR Payerne Assemblée Générale 2012
PLR Payerne Assemblée Générale 2012PLR Payerne Assemblée Générale 2012
PLR Payerne Assemblée Générale 2012
 
Mobile GeoAdmin, 2011
Mobile GeoAdmin, 2011Mobile GeoAdmin, 2011
Mobile GeoAdmin, 2011
 
Spatial data infrastructure in the cloud, 2011
Spatial data infrastructure in the cloud, 2011Spatial data infrastructure in the cloud, 2011
Spatial data infrastructure in the cloud, 2011
 
BGDI: Cloud Computing - Data Management - Mobile, 2011
BGDI: Cloud Computing - Data Management - Mobile, 2011BGDI: Cloud Computing - Data Management - Mobile, 2011
BGDI: Cloud Computing - Data Management - Mobile, 2011
 
Mobile Lösung fur GeoDatenInfrastrucktur, 2011
Mobile Lösung fur GeoDatenInfrastrucktur, 2011Mobile Lösung fur GeoDatenInfrastrucktur, 2011
Mobile Lösung fur GeoDatenInfrastrucktur, 2011
 
OpenLayers Mobile Code Sprint, 2011
OpenLayers Mobile Code Sprint, 2011OpenLayers Mobile Code Sprint, 2011
OpenLayers Mobile Code Sprint, 2011
 
Mobile GeoAdmin Mockup, 2011
Mobile GeoAdmin Mockup, 2011Mobile GeoAdmin Mockup, 2011
Mobile GeoAdmin Mockup, 2011
 
GeoWeb: vers une diversification des geoservices , 2011
GeoWeb: vers une diversification des geoservices, 2011GeoWeb: vers une diversification des geoservices, 2011
GeoWeb: vers une diversification des geoservices , 2011
 
Cloud Computing and HTML5, 2010
Cloud Computing and HTML5, 2010Cloud Computing and HTML5, 2010
Cloud Computing and HTML5, 2010
 
Open Addresses Help
Open Addresses HelpOpen Addresses Help
Open Addresses Help
 
Topobase Electric AU 2007
Topobase Electric AU 2007Topobase Electric AU 2007
Topobase Electric AU 2007
 
Web x.0 aussi pour la géomatique 2009
Web x.0 aussi pour la géomatique 2009Web x.0 aussi pour la géomatique 2009
Web x.0 aussi pour la géomatique 2009
 
GeoExt Foss4G 2009
GeoExt Foss4G 2009GeoExt Foss4G 2009
GeoExt Foss4G 2009
 

Último

Último (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
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...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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 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...
 

GeoAdmin API & Mobile API, 2012

  • 2. Law Federal Act on Geoinformation (GeoIG), 1. Juli 2008 Art. 1 Aim This Act has the aim of ensuring that geodata relating to the territory of the Swiss Confederation is made available for general use to the authorities of the Confederation, the cantons and communes, the private sector, the public and to academic and scientific institutions in a sustainable, up-to-date, rapid and easy manner, in the required quality and at a reasonable cost. Picture by floofy
  • 4. Open Access Open Standards Open Source Software Access not ownership is where all content is going… (Kevin Kelly) Picture by ul_Marga
  • 6. API Architecture mobile.geo.admin.ch map.geo.admin.ch revision globe tsm are API Mobile API GeoServices Data (Tiles / Databases)
  • 7. API Architecture: data • Tiles delivered with WMTS RESTFul: View • For vector • For raster • Database: Data access • For vector ;-) http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#wmts
  • 8. API Architecture: Geoservices • REST Services • Geocoding • Reverse geocoding • Feature • Profile • Height http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#swisssearch-geocoding http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#swisssearch-reversegeocoding http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#feature http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#profile-json http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#height
  • 9. API Architecture: API <script type="text/javascript"> function init() { var api = new GeoAdmin.API(); api.createMap({ div: "mymap1" }); } </script> <body onload="init();"> <div id="mymap1" style="width:500px;height:340px;border:1px solid grey;padding: 0 0 0 0;margin:10px !important;"></div> <script type="text/javascript" src="http://api.geo.admin.ch/loader.js"></script> </body> GeoAdmin API GeoExt OpenLayers ExtJS 3.4
  • 10. API Architecture: Mobile API Ext.setup({ onReady: function(){ m = new GeoAdminMobile.Map({handedness: 'right', contextinfo: true, featureinfo: true }); var wmts2 = GeoAdmin.layers.buildLayerByName ("ch.bfs.gebaeude_wohnungs_register", {isBaseLayer: false}); m.map.addLayers([wmts2]); } }); GeoAdmin Mobile API GeoExt Mobile (GXM) OpenLayers Sencha Touch
  • 11. Mashups ? • Permalink (WMS – KML (doc) - Address) • StreetView • GeoCoder • Routing • GoogleEarth • GPX • REST API • All the power of OpenLayers and ExtJS http://map.geo.admin.ch/?Y=539275&X=182725&zoom=7&bgLayer=ch.swisstopo.pixelkarte- farbe&layers=WMS%7C%7COrthophoto%20Yverdon%20banquise%20(22.02.2012)%7C%7Chttp://ogc.heig-vd.ch/mapserver/wms?%7C%7Cr- pod_yverdon_banquise-2&layers_opacity=1 http://map.geo.admin.ch/?Y=541750&X=163000&zoom=5&bgLayer=ch.swisstopo.pixelkarte- farbe&layers=KML%7C%7Chttps://docs.google.com/uc?id=0B_gmqEgDEiu5OGY0MDhmNmYtNTA5YS00MzVlLWI4ZWUtMzc1NzU4ZjU3NmM3& layers_opacity=1&layers_visibility=true http://www.geo.admin.ch/internet/geoportal/fr/commons/help/viewer_help.html#parsys_95922 http://map.geo.admin.ch/?swisssearch=berges%2037%20payerne http://api.geo.admin.ch/main/wsgi/doc/build/api/streetview.html http://api.geo.admin.ch/main/wsgi/doc/build/api/geocoder.html http://api.geo.admin.ch/main/wsgi/doc/build/api/routing.html http://sitn.ne.ch/ http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapiexamples4.html http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html http://www.openlayers.org/
  • 12. Documentation • API Generator • API • Mobile API • FAQ http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapigenerator.html http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapidoc.html http://api.geo.admin.ch/main/wsgi/doc/build/api/sdimapidoc.html http://api.geo.admin.ch/main/wsgi/doc/build/api/faq/index.html
  • 13. Terms of use • Terms of use • GeoAdmin API is completely free and open • All layers, except data of swisstopo web access WMTS, can be used freely. 25’000 MegaPixels are free. • Domain registration is required (…one work week…) http://www.geo.admin.ch/internet/geoportal/en/home/geoadmin/contact.html http://api.geo.admin.ch/main/wsgi/doc/build/api/faq/index.html#which-layers-are-available http://www.swisstopo.admin.ch/internet/swisstopo/fr/home/products/services/web_services/webaccess.html
  • 14. Tips and tricks • Develop with localhost • Use the mailing lists • Always test on IE ;-) • Use Google Chrome for mobile development (mobile=true) • You need the source code ? Just ask ! • All stations http://www.bav.admin.ch/dokumentation/publikationen/00475/01497/index.html?lang=fr • Hiking trails http://map.geo.admin.ch/?Y=660000&X=190000&zoom=1&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.vec25- wander&layers_opacity=1&layers_visibility=true&lang=en • Road network http://map.geo.admin.ch/?Y=660000&X=190000&zoom=1&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.vec25- strassennetz&layers_opacity=1&layers_visibility=true&lang=en • Historical routes http://map.geo.admin.ch/?Y=660000&X=190000&zoom=1&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.astra.ivs- reg_loc&layers_opacity=1&layers_visibility=true&lang=en • Traffic counting stations (see tooltips)
  • 17. Why HTML5 ? • Not proprietary • No browser dependence • Advanced functions within browser • Standardardized API: Geolocation – Canvas – Appcache - etc.. HTML5 test: http://html5test.com/ http://www.html5rocks.com/
  • 19. Perspective ? • 3D: WebGL • 4D: Historical data view • Offline
  • 20.
  • 21. ..and it works! some awards: Picture by swisstopo
  • 22. Thank you for your attention and welcome to www.geo.admin.ch