Pages: 1 2 [3]
  Print  
Author Topic: GPS and Signing  (Read 18668 times)
0 Members and 1 Guest are viewing this topic.
Thommas
Newbie
*
Posts: 25


« Reply #30 on: 05 December , 2008, 09:47:03 »

My very last request (I hope) :

As my phone is a French one, Latitude and Longitude are with a comma instead of a dot.

I imagined this code :
function getLat(lat : String) : Number
{
   if (lat.charAt(1) == ".")
      return Number(lat);
   var ac : Array = lat.split(",");
   return Number(ac[0] + "." + ac[1]);
}
getLat(result.klPosLatitude);

Which might slow my app ...

Do you think about another cleaner way to solve this problem ?

Thank you.
Best regards.
Logged
Pages: 1 2 [3]
  Print  
 
Jump to: