[android-developers] Re: Maps API : drawing driving itinerary
Try the Douglas-Peucker algorithm. There is an open-source
implementation of the Douglas-Peucker algorithm in Java in the
MyTracks Android project, which is licensed under Apache 2.0:
http://code.google.com/p/mytracks/source/browse/MyTracks/src/com/google/android/apps/mytracks/util/LocationUtils.java
Its in the method "decimate()".
On May 18, 10:06 am, TreKing <treking...@gmail.com> wrote:
> On Fri, May 18, 2012 at 4:00 AM, Simon Giddings <mr.s.giddi...@gmail.com>wrote:
>
> > Here I loop through 11235 GeoPoint objects
>
> That seems like a lot in one draw call. So the next question is, do you
> need to draw lines between 11,235 points every frame?
> Before you get to the actual drawing, you should reduce that list size to
> the absolute minimum required to get your results.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
--
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