I'm sending (via the console)

geo fix   -2.430872   51.225761

Then centering the map and zooming in :

    public class GeoUpdateHandler implements LocationListener {

                @Override
                public void onLocationChanged(Location location) {
                        String newpos;
                        int lat = (int) (location.getLatitude() * 1E6);
                        int lng = (int) (location.getLongitude() * 1E6);
                        newpos = Integer.toString(lat) + " " + 
Integer.toString(lng);
                        GeoPoint point = new GeoPoint(lat, lng);
                        Log.v("GeoFix :", newpos);
                        mc.setCenter(point);
                        mc.setZoom(10);

                }


Howver, the map centre is about 15 miles out.
The 'received' Geopint from the Geo Fix is

04-12 14:21:25.081: VERBOSE/GeoFix :(502): 51225168 -2420023


If I click the centre of the map the point is

04-12 14:22:03.963: VERBOSE/Touch :(502): 51195913 -2389811

Is there a rounding error from Geo fix, or something I should be aware
of but aren't yet!

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to