From 410708770a47f63089af2f4fdb5c0ffa262eeafe Mon Sep 17 00:00:00 2001 From: vguzev Date: Thu, 16 Oct 2014 16:01:48 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20ID=20=D0=B3=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20=D0=B2=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B4=D0=B0=D1=87=D0=B5=20getCityByIdx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Нужен ID города, т.к. есть города с одинаковыми названиями. --- ipgeobase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipgeobase.php b/ipgeobase.php index 2fd6e8f..67b9a5b 100644 --- a/ipgeobase.php +++ b/ipgeobase.php @@ -73,7 +73,8 @@ private function getCityByIdx($idx) 'region' => $arRecord[2], 'district' => $arRecord[3], 'lat' => $arRecord[4], - 'lng' => $arRecord[5]); + 'lng' => $arRecord[5], + 'id' => $arRecord[0] ); } } return false;