GeoAdmin API & Mobile API, 2012
-
Upload
moullet -
Category
Technology
-
view
1.112 -
download
0
description
Transcript of GeoAdmin API & Mobile API, 2012
![Page 1: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/1.jpg)
make.opendata.ch
GeoAdmin API
Cédric Moulletgeo.admin.ch / swisstopo
![Page 2: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/2.jpg)
Picture by floofy
Federal Act on Geoinformation (GeoIG), 1. Juli 2008Art. 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.
Law
![Page 3: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/3.jpg)
Howdid we achieve this
![Page 4: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/4.jpg)
Open Source Software
Picture by ul_Marga
Access not ownership is where all content is going… (Kevin Kelly)
Open Access
Open Standards
![Page 5: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/5.jpg)
Architecture
![Page 6: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/6.jpg)
API Architecture
Data (Tiles / Databases)
GeoServices
API Mobile API
map.geo.adm
in.ch
globe
tsm
revision
are
mobile.geo.adm
in.ch
Free API’s
![Page 7: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/7.jpg)
API Architecture: data• Tiles delivered with WMTS RESTFul: View
• For vector• For raster
• Database: Data access• For vector ;-)
200 datasets
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#wmts
![Page 8: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/8.jpg)
API Architecture: Geoservices
• REST Services• Geocoding• Reverse geocoding• Feature• Profile• Height
api.geo.admin.ch
http://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#swisssearch-geocodinghttp://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#swisssearch-reversegeocodinghttp://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#featurehttp://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#profile-jsonhttp://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.html#height
![Page 9: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/9.jpg)
API Architecture: API
OpenLayers ExtJS 3.4
GeoExt
GeoAdmin 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>
Javascript
![Page 10: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/10.jpg)
API Architecture: Mobile API
OpenLayers Sencha Touch
GeoExt Mobile (GXM)
GeoAdmin 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]); } });
Javascript
![Page 11: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/11.jpg)
Mashups ?Feel free !
• Permalink (WMS – KML (doc) - Address)• StreetView• GeoCoder• Routing• GoogleEarth• GPX• REST API• All the power of OpenLayers and ExtJShttp://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=1http://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=truehttp://www.geo.admin.ch/internet/geoportal/fr/commons/help/viewer_help.html#parsys_95922http://map.geo.admin.ch/?swisssearch=berges%2037%20payernehttp://api.geo.admin.ch/main/wsgi/doc/build/api/streetview.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/api/geocoder.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/api/routing.htmlhttp://sitn.ne.ch/http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapiexamples4.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/services/sdiservices.htmlhttp://www.openlayers.org/http://www.sencha.com/products/extjs/
![Page 12: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/12.jpg)
Documentation
Learn by yourself• API Generator• API• Mobile API• FAQ
http://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapigenerator.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/api/sdiapidoc.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/api/sdimapidoc.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/api/faq/index.html
![Page 13: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/13.jpg)
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…)
Be warned
http://www.geo.admin.ch/internet/geoportal/en/home/geoadmin/contact.htmlhttp://api.geo.admin.ch/main/wsgi/doc/build/api/faq/index.html#which-layers-are-availablehttp://www.swisstopo.admin.ch/internet/swisstopo/fr/home/products/services/web_services/webaccess.html
![Page 14: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/14.jpg)
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 trailshttp://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 networkhttp://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 routeshttp://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)
Good luck
![Page 15: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/15.jpg)
MobileTechnology
![Page 16: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/16.jpg)
Mobile App
Mobile Website
![Page 17: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/17.jpg)
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/
![Page 18: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/18.jpg)
Perspective
![Page 19: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/19.jpg)
Perspective ?
• 3D: WebGL• 4D: Historical data view• Offline
![Page 20: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/20.jpg)
Thanks cloud !
![Page 21: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/21.jpg)
..and it works! some awards:
Picture by swisstopo
![Page 22: GeoAdmin API & Mobile API, 2012](https://reader036.fdocuments.us/reader036/viewer/2022082219/55667800d8b42a0f168b4766/html5/thumbnails/22.jpg)
Thank you for your attention and welcome to www.geo.admin.ch