[android-developers] Re: MapView Overlay Location Way Off
Turns out my latitude and longitude's were not being converted to
microdegrees correctly. Taking the latitudes and longitudes and
converting them from 37.331689 and -122.030731 to 37331689 and
-122030731 were actually ending up as 37000000 and -122000000. I was
using double*1E6 to convert to microdegrees. I ended up removing the
code from the application and moved it into the web app that it pulls
the data from. Once it was in there, the geopoint's were accuratly
converted and the overlays appeared in the correct location.
On May 28, 10:50 am, TreKing <treking...@gmail.com> wrote:
> On Thu, May 27, 2010 at 12:36 PM, jtkendall <j...@icrush.it> wrote:
> > I'm not sure if I'm just calling something too early/late, or if
> > I'm missing something completely.
>
> Just took a cursory glance and your code looks fine - my guess is your data
> is bad.
> Double check the values - are you sure they are what you think they should
> be?
>
> --------------------------------------------------------------------------- ----------------------
> TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home