android - Determine Maximum and Minimum GPS coordinate from a list of GPS coordinates -


i have list of gps coordinates , drawing polyline between maximum , minimum coordinate list. keeping in mind geometry of earth cannot consider max , min coordinate based on numeric value.

can please suggest me away determine max , min coordinates keeping in mind these gps source?

solution @ python or android side both do. thankyou!

to give proper answer first need define mean maximum , minimum coordinate. if define coordinates having largest distance in between them, suggested in comments, method computedistancebetween() in google maps android api utility library might help. can use following java code:

import com.google.android.gms.maps.model.latlng; import com.google.maps.android.sphericalutil;    latlng = ...; latlng b = ...;  double distance = sphericalutil.computedistancebetween(a, b); 

you need add following dependencies {...} in build.gradle (module: app) file:

compile "com.google.maps.android:android-maps-utils:0.4.4" 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -