lundi 13 septembre 2010

HTML 5 and the GPS script

What is html 5 is difficult to answer in one sentence. Is it FLASH scripting inside HTML? Will it replace companies like LAYAR.com?

Anyway making a page on your mobile phone with GPS and getting your location is fun!

Some people have made this easy for us:
http://merged.ca/iphone/html5-geolocation

and indeed for the crosslab minor ( wdka.nl ) I hacked this page above for loading on my phone with gps in safari, and have put it on my server:
http://www.contrechoc.com/layar/geoTest.html


You can imagine what to do with this page:
in the page connect to a database (use the same database of the previous posts on layar)
look if you are in the neighbourhood of a POI (Point of interest) and do something!

Now being in a browser you are outside the application of (for instance) layar.com.
You have your own control over all the elements of the game, database, effects etc.

For this you have to program a bit, in:
html
php (for a database connection)

If you understand the page of the tutorial of layar.com:
http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer
you could hack this page and salvage the useful bits for your own php page.

One part of this script is calling a Google map. Here you can find the principles:
http://code.google.com/intl/nl/apis/maps/index.html#The_Hello_World_of_Google_Maps
where you find this tutorial:
http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html
what you can do with that?
see my current homepage: http://www.contrechoc.com




Aucun commentaire:

Enregistrer un commentaire