Stephan
Stephan

Reputation: 16739

Testing google-maps

I have a small question. How can I test an application which uses the google-maps api? I am looking for a tutorial that describes how to write test for checking the longitude, latitude and ranges of two points. I just found some tutorials how to write google-maps application, but now I want to test it. Especially the format of the longitudes and latitudes, because when I print them out they get represented with that E7 style and I can't see the whole coordinate.

Upvotes: 1

Views: 509

Answers (1)

SERPRO
SERPRO

Reputation: 10067

The E7 is just an integer representation of the latitude / longitude if you want to get the float value of that just use:

float latitude = latitudeE7 / 1E7

if you want to check the values you can put for example:

Log.d("TAG", "Latitude: " + String.valueOf(latitude) );

Upvotes: 2

Related Questions