try use WRT and embed the flash...
and calculate the speed
speed=distance/time
here is a sample code from one of my application (holoSpeed: http://store.ovi.com/content/108914)
I modify the callback function from the sample code that gets GPS data (also modify the showObject function from sample code)
Code:
function showObject(obj){
var txt = "";
try{
if(typeof obj!='object')
return ""+obj+'<BR/>';
else{
for(var key in obj){
txt+=key+"::";txt+=showObject( obj[key] );txt+='<BR/>';
}
txt+='<BR/>';
}
}catch(e){
alert("showObject: "+e);
}
return txt;
}
.......
.........
.......
function callback1(transId, eventCode, result){
if(!checkError("ILocation::getLocationAsync",result,DIV_ID,imgid_callback1)) {
aux=showObject(result.ReturnValue);
d=new Date();
timp=d.getHours()+":"+d.getMinutes()+":"+d.getSeconds();
t1=d.getTime();
t=t1-t2;
tt=t/1000;
t2=t1;
//"Distance::"+getDistance()+
aux=aux.split("<BR/>");
LNG0=LNG;
LAT0=LAT;
ALT0=ALT;
LNG=aux[0];LNG=LNG.split("::");LNG=LNG[1];
LAT=aux[2];LAT=LAT.split("::");LAT=LAT[1];
acc=aux[4];acc=acc.split("::");acc=acc[1];
tim=aux[6];tim=tim.split("::");tim=tim[1];
d=getDistance()-0;
v=3600*d/t;
document.getElementById("holoSpeed").SetVariable("txtJS","<BR>lng::"+(LNG-0)+"<BR>lat::"+(LAT-0)+"<BR>distance::"+d+"<BR>speed::"+v+"<BR>time:"+timp);
}
}
the line v=3600*d/t; calculates the speed in km/h