Geocaching Basic

Alles rund um Programme und Anwendungen für euer Bada OS.
User avatar
mortara
mobile-Legend
Posts: 2569
Joined: Tue 19. Jul 2011, 06:16
Smartphone system: Android
Netzbetreiber: Vodafone
BS: Windows 7 64bit
Location: Frankfurt am Main
Contact:

Re: Geocaching Basic

Post by mortara »

Welchen Aufruf benutzt du denn zum Konvertieren der Koordinaten?
Diesen hier:

Code: Select all

static result Osp::Locations::Coordinates::Convert	(	double 	coordinate,
StringCoordinateType 	outputType,
Osp::Base::String & 	strCoordinate 
)	
Was gibst du als outputType rein?
Patrick
User avatar
Catscratch
mobile-Hero
Posts: 1574
Joined: Wed 20. Jul 2011, 20:04
Smartphone system: Android
BS: Windows 8

Re: Geocaching Basic

Post by Catscratch »

Das sieht ungefähr so aus.

Code: Select all

// tmp ist ein string
// location->Latitude ist das was vom LocationProvider zurückbekomme
Osp::Locations::QualifiedCoordinates::Convert(location->Latitude, DD_MM, tmp);

// LocationProvider Auszug
void
GpsLocation::OnLocationUpdated(Location& location)
{
	if(location.GetQualifiedCoordinates()!=null)
	{
		const QualifiedCoordinates *q = location.GetQualifiedCoordinates();

		Latitude = q->GetLongitude();
...
null
User avatar
mortara
mobile-Legend
Posts: 2569
Joined: Tue 19. Jul 2011, 06:16
Smartphone system: Android
Netzbetreiber: Vodafone
BS: Windows 7 64bit
Location: Frankfurt am Main
Contact:

Re: Geocaching Basic

Post by mortara »

Dein ernst? :)
Latitude = q->GetLongitude();

Edit:

Code: Select all

Convert(location->Latitude, DD_MM, tmp);
probier mal:

Code: Select all

Convert(location->Latitude, DD_MM_SS, tmp);

Wenn du willst können wir die App übers Testkit auf emeinm Wave 3 dann nochmal probieren ....
Patrick
User avatar
Catscratch
mobile-Hero
Posts: 1574
Joined: Wed 20. Jul 2011, 20:04
Smartphone system: Android
BS: Windows 8

Re: Geocaching Basic

Post by Catscratch »

Latitude = q->GetLongitude();
Ne. Hatte es nur modifiziert.
Im Code steht schon: Latitude = q->GetLatitude();

Ok, schick mir mal deine DeviceID.
null
User avatar
mortara
mobile-Legend
Posts: 2569
Joined: Tue 19. Jul 2011, 06:16
Smartphone system: Android
Netzbetreiber: Vodafone
BS: Windows 7 64bit
Location: Frankfurt am Main
Contact:

Re: Geocaching Basic

Post by mortara »

Das hätte aber eine 'gewisse' Abweichung gut erklärt! ;)

DeviceID kommt gleich ...
Patrick
User avatar
Catscratch
mobile-Hero
Posts: 1574
Joined: Wed 20. Jul 2011, 20:04
Smartphone system: Android
BS: Windows 8

Re: Geocaching Basic

Post by Catscratch »

Mir fällt auf...DD_MM_SS ist doch aber ein anderes Koordinatenformat, oder?

DD_MM ist doch das Geocaching übliche. Sprich XX° XX.XXX
DD_MM_SS ist doch: XX° XX' XX.X

Oder wie wird das bei Samsung gehandhabt?
null
User avatar
mortara
mobile-Legend
Posts: 2569
Joined: Tue 19. Jul 2011, 06:16
Smartphone system: Android
Netzbetreiber: Vodafone
BS: Windows 7 64bit
Location: Frankfurt am Main
Contact:

Re: Geocaching Basic

Post by mortara »

bei DD_MM werden die Sekunden halt als Bruchteil der Minuten dargestellt, aber eigentlich sollte die gleiche Position bei raus kommen. Nur hast du bei DD_MM_SS halt ein paar mehr Stellen hinter dem Komma, sprich du kannst die Sekunden (und damit die Position) genauer darstellen.
Patrick
User avatar
Catscratch
mobile-Hero
Posts: 1574
Joined: Wed 20. Jul 2011, 20:04
Smartphone system: Android
BS: Windows 8

Re: Geocaching Basic

Post by Catscratch »

Aber mit DD_MM bin ich doch schon bis auf 5m genau afaik. Also wozu noch DD_MM_SS?

Edit: Laut http://goo.gl/VwdoY" onclick="window.open(this.href);return false; sollte es egal sein, was ich nehme. (zumindest gleich genau)

Nebenbei, ich bekomm beim Kompilieren:
"cannot find -IFOsp"
Hast du da ne Idee?
null
User avatar
mortara
mobile-Legend
Posts: 2569
Joined: Tue 19. Jul 2011, 06:16
Smartphone system: Android
Netzbetreiber: Vodafone
BS: Windows 7 64bit
Location: Frankfurt am Main
Contact:

Re: Geocaching Basic

Post by mortara »

Du hast bei DD_MM aber nur 3 Stellen hinter dem Komma für die Sekunden, müsste man mal ausrechnen, wie genau man die Position wirklich darstellen kann damit. Bei DD_MM_SS hast du für die Sekunden 2 Stellen vor dem Komma, und drei dahinter glaub ich. Dürfte also genauer sein.
Patrick
User avatar
mortara
mobile-Legend
Posts: 2569
Joined: Tue 19. Jul 2011, 06:16
Smartphone system: Android
Netzbetreiber: Vodafone
BS: Windows 7 64bit
Location: Frankfurt am Main
Contact:

Re: Geocaching Basic

Post by mortara »

ok, sehe gerade, in der Theorie sollte die dritte Stelle hinter dem Komma bei DD_MM keine wirkliche auswirkung haben. Vielleicht stimmt etwas mit Samsungs umrechnungsroutine nicht?
Patrick
Post Reply