public static long locationAtTick(GeoTimeSerie gts,long tick){
  if (null == gts.locations) {
    return GeoTimeSerie.NO_LOCATION;
  }
  sort(gts,false);
  int idx=Arrays.binarySearch(gts.ticks,0,gts.values,tick);
  if (idx < 0) {
    return GeoTimeSerie.NO_LOCATION;
  }
 else {
    return gts.locations[idx];
  }
}

public static long locationAtTick ( GeoTimeSerie gts , long tick ) { if ( null == gts . locations ) { return GeoTimeSerie . NO_LOCATION ; } sort ( gts , false ) ; int idx = Arrays . binarySearch ( gts . ticks , 0 , gts . values , tick ) ; if ( idx < 0 ) { return GeoTimeSerie . NO_LOCATION ; } else { return gts . locations [ idx ] ; } }
return the location in a geo time serie at a given timestamp . the geotimeserie instance will be sorted if it is not already .
