You are here

function _random_point in Geofield 7

7 calls to _random_point()
_geofield_devel_generate in ./geofield.devel_generate.inc
_wkt_generate_linestring in ./geofield.devel_generate.inc
_wkt_generate_multilinestring in ./geofield.devel_generate.inc
_wkt_generate_multipoint in ./geofield.devel_generate.inc
_wkt_generate_multipolygon in ./geofield.devel_generate.inc

... See full list

File

./geofield.devel_generate.inc, line 92
Create random data to populate geofields.

Code

function _random_point() {
  $lon = _dd_generate(-180, 180);
  $lat = _dd_generate(-84, 84);
  return array(
    $lon,
    $lat,
  );
}