svn: /web/presentations/trunk/ maps-londonweb10.xml slides/map/googlemap.xml slides/map/openlayers-location-services.xml
slides/map/openlayers-simple.xml slides/map/reverse-services.xml

From: Date: Tue, 26 Oct 2010 16:50:04 +0000
Subject: svn: /web/presentations/trunk/ maps-londonweb10.xml slides/map/googlemap.xml slides/map/openlayers-location-services.xml
slides/map/openlayers-simple.xml slides/map/reverse-services.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1678@lists.php.net to get a copy of this message
derick Tue, 26 Oct 2010 16:50:04 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304928 Log: LondonWeb talk Changed paths: A web/presentations/trunk/maps-londonweb10.xml U web/presentations/trunk/slides/map/googlemap.xml A web/presentations/trunk/slides/map/openlayers-location-services.xml U web/presentations/trunk/slides/map/openlayers-simple.xml A web/presentations/trunk/slides/map/reverse-services.xml Added: web/presentations/trunk/maps-londonweb10.xml =================================================================== --- web/presentations/trunk/maps-londonweb10.xml (rev 0) +++ web/presentations/trunk/maps-londonweb10.xml 2010-10-26 16:50:04 UTC (rev 304928) @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation + template="css" + navmode="html" + navbarbackground="#4373b4" + navbartopiclinks="0" + navColor="#f1fbff" + logo1="" + backgroundfixed="1" > +<topic>Maps</topic> +<title>Geolocation and Maps with PHP</title> +<event>London Web</event> +<location>London, UK</location> +<date>October 21th, 2010</date> +<speaker>Derick Rethans</speaker> +<email>derick@derickrethans.nl</email> +<twitter>derickr</twitter> +<url>http://derickrethans.nl/talks.html</url> +<slide>slides/map/title.xml</slide> +<slide>slides/toolbox/me.xml</slide> + +<!-- THEORY --> +<!-- +- coordinate systems + - reference ellipsoid/datum + - can have multiple coordinate systems + - WGS84 datum -> GPS/ + - reference ellipsoid -> WGS84/OSGB36 = datum (geodetic) + GRS80 ellipsoid )reference ellipsoid) + - OS -> OSGB36 datum/Airy 1830 ellipsoid + - Transverse Mercator projection with an origin at 49° N, 2° W + - The most common transformation is called the Helmert datum transformation, which results in a typical 7 m error from true. The definitive transformation from ETRS89 that is published by the OSGB is called the National Grid Transformation OSTN02.[2] This models the detailed distortions in the 1936–1962 retriangulation, and achieves backwards compatibility in grid coordinates to sub-metre accuracy. + - geoid +- projections +--> + +<slide>slides/map/earth-not-a-sphere.xml</slide> +<slide>slides/map/earth-sphere-approximation.xml</slide> +<slide>slides/map/meridian.xml</slide> +<slide>slides/map/earth-not-flat.xml</slide> +<slide>slides/map/projections.xml</slide> +<slide>slides/map/coordinates.xml</slide> +<slide>slides/map/grid-systems.xml</slide> + +<!-- +SHOWING DATA +- OpenStreetMap tiles +- (Google, eew!) +--> +<slide>slides/map/googlemap.xml</slide> +<slide>slides/map/openlayers-simple.xml</slide> + +<!-- +ACQUIRING LOCATION +- Nominatim +- Geonames +- Yahoo +- firefox location API +- Google GeoLocation +--> +<slide>slides/map/openlayers-location.xml</slide> +<slide>slides/map/openlayers-location-services.xml</slide> +<slide>slides/map/reverse.xml</slide> +<slide>slides/map/reverse-services.xml</slide> + +<slide>slides/map/html-location-services.xml</slide> +<slide>slides/map/google-geolocation.xml</slide> + +<!-- +ACQUIRING DATA +- Open Street Map +- Ordnance Survey Open CodePoint +- GPX files +--> +<slide>slides/map/osm-what.xml</slide> +<slide>slides/map/osm-xapi.xml</slide> + +<!-- +PLOTTING DATA +- mysql/sqlite/mongodb +- distances are tricky +- flickr photos +--> + +<slide>slides/map/finding-food.xml</slide> +<slide>slides/map/finding-distances.xml</slide> +<slide>slides/map/tube-gpx.xml</slide> +<slide>slides/map/flickr.xml</slide> + +<!-- micro format: http://en.wikipedia.org/wiki/Geo_%28microformat%29 --> + +<slide>slides/map/resources.xml</slide> + +</presentation> Modified: web/presentations/trunk/slides/map/googlemap.xml =================================================================== --- web/presentations/trunk/slides/map/googlemap.xml 2010-10-26 16:49:31 UTC (rev 304927) +++ web/presentations/trunk/slides/map/googlemap.xml 2010-10-26 16:50:04 UTC (rev 304928) @@ -19,9 +19,9 @@ </script> <script type="text/javascript"> function initialize() { - var latlng = new google.maps.LatLng(40.153293, -76.72534); + var latlng = new google.maps.LatLng(51.51922, -0.12736); var myOptions = { - zoom: 14, center: latlng, + zoom: 17, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); Added: web/presentations/trunk/slides/map/openlayers-location-services.xml =================================================================== --- web/presentations/trunk/slides/map/openlayers-location-services.xml (rev 0) +++ web/presentations/trunk/slides/map/openlayers-location-services.xml 2010-10-26 16:50:04 UTC (rev 304928) @@ -0,0 +1,9 @@ +<slide> +<title>Looking up latitude/longitude</title> +<subtitle>Different services</subtitle> + +<list> + <bullet>*Nominatim:*<br/>http://nominatim.openstreetmap.org/search?format=json&amp;limit=1&amp;q=London</bullet> + <bullet>*Yahoo:*<br/>http://where.yahooapis.com/geocode?flags=GJT&amp;appid=[yourappidhere]&amp;q=London</bullet> +</list> +</slide> Modified: web/presentations/trunk/slides/map/openlayers-simple.xml =================================================================== --- web/presentations/trunk/slides/map/openlayers-simple.xml 2010-10-26 16:49:31 UTC (rev 304927) +++ web/presentations/trunk/slides/map/openlayers-simple.xml 2010-10-26 16:50:04 UTC (rev 304928) @@ -21,9 +21,9 @@ <script type="text/javascript"> var map; //complex object of type OpenLayers.Map - var lat=52.500556 - var lon=13.3988 - var zoom=13 + var lat=51.51922 + var lon=-0.12736 + var zoom=17 function init() { map = new OpenLayers.Map ("map", { Added: web/presentations/trunk/slides/map/reverse-services.xml =================================================================== --- web/presentations/trunk/slides/map/reverse-services.xml (rev 0) +++ web/presentations/trunk/slides/map/reverse-services.xml 2010-10-26 16:50:04 UTC (rev 304928) @@ -0,0 +1,10 @@ +<slide> +<title>Finding a name for the current location</title> +<subtitle>Different services</subtitle> + +<list> + <bullet>*Geonames:*<br/>http://ws.geonames.org/findNearbyPlaceNameJSON?username=derick&amp;style=full&amp;lat={$lat}&amp;lng={$lon}</bullet> + <bullet>*Nominatim:*<br/>http://nominatim.openstreetmap.org/reverse?format=json&amp;lat={$lat}&amp;lon={$lon}&amp;zoom={$z}</bullet> + <bullet>*Yahoo:*<br/>http://where.yahooapis.com/geocode?gflags=R&amp;flags=GJQT&amp;q={$lat},{$lon}</bullet> +</list> +</slide>

« previous php.pres (#1678) next »