You are here

function _gmap_geo_simplify_cmp_acceleration in GMap Addons 7

Same name and namespace in other branches
  1. 6 gmap_geo/simplify.inc \_gmap_geo_simplify_cmp_acceleration()
1 string reference to '_gmap_geo_simplify_cmp_acceleration'
gmap_geo_simplify in gmap_geo/simplify.inc
This function would probably work for lines as well as polygons, but you still have to feed it a centroid.

File

gmap_geo/simplify.inc, line 154

Code

function _gmap_geo_simplify_cmp_acceleration($a, $b) {
  return $a['acceleration'] < $b['acceleration'] ? 1 : ($a['acceleration'] != $b['acceleration'] ? -1 : 0);
}