X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgeoloc.inc.php;h=51fc43c38c15162c975cd45180257fde0d0389c1;hb=730a173a333507926e0029d8a96c3a26b55756e4;hp=df3214a30eeb746a77110b5b041a6b36391f7521;hpb=c18955241354a570722b399588cfa6b5e63a5806;p=platal.git diff --git a/include/geoloc.inc.php b/include/geoloc.inc.php index df3214a..51fc43c 100644 --- a/include/geoloc.inc.php +++ b/include/geoloc.inc.php @@ -1,6 +1,6 @@ numRows()) { + list($glat, $glng) = $res->fetchOneRow(); + $infos['precise_lat'] = $glat; + $infos['precise_lon'] = $glng; + } + } + } return $infos; } // }}} @@ -225,7 +239,9 @@ function empty_address() { "region" => "", "regiontxt" => "", "country" => "00", - "countrytxt" => ""); + "countrytxt" => "", + "precise_lat" => "", + "precise_lon" => ""); } // create a simple address from a text without geoloc