[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/privacyprotection/cron/task/anonymize_ip.php on line 83: A non-numeric value encountered
Inoffizielles deutsches Xbase-Forum • GetLocation() [erledigt]
Seite 1 von 1

GetLocation() [erledigt]

Verfasst: Sa, 15. Aug 2009 17:51
von AUGE_OHR
hi,

eigentlich sollte es ja ganz einfach sein mit GetLocation(Latitude, Longitude) einen Ort zu bekommen

für Latitude und Longitude werden numerische Werte mit 5 Dezimal Stellen benötigt ABER mit einem "," (komma) statt eines "." (punkt)

also statt 53.8679166 / 10.7214646 brauche ich 53,8679166 / 10,7214646 ... nur WIE ???

Code: Alles auswählen

nLocXZahl := INT(CHINA06->Locx)
nLocYZahl := INT(CHINA06->Locy)
nLocXDec  := CHINA06->Locx - INT(CHINA06->Locx)
nLocYDec  := CHINA06->Locy - INT(CHINA06->Locy)

oLocation := ::oMap:ActiveMap:GetLocation((nLocXZahl+nLocXDec),;
                                          (nLocYZahl+nLocYDec),;
                                          10)
oLocation:goto()
leider lande ich damit immer noch im Atlantik ... HILFE !!! :banghead:

ok man sollte Längen und Breitengrade nicht vertauschen ... dann geht es "so" mit dem "zerlegen" von einem (deutschen ... ".") numerischen Wert.