summaryrefslogtreecommitdiff
path: root/Contact.php
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2011-03-10 16:26:47 +0000
committerLester Caine <lsces@lsces.co.uk>2011-03-10 16:26:47 +0000
commit453db6e43dd9a14fc318f2c3406f53b778140903 (patch)
treedf94ab30d7c18c4650c41c020a8c3f9da1d64f21 /Contact.php
parentb18b822d9ee3814e5615035bf9936d3c79316558 (diff)
downloadcontact-453db6e43dd9a14fc318f2c3406f53b778140903.tar.gz
contact-453db6e43dd9a14fc318f2c3406f53b778140903.tar.bz2
contact-453db6e43dd9a14fc318f2c3406f53b778140903.zip
Swap x and y so they are lng and lat not lat and lng
Diffstat (limited to 'Contact.php')
-rw-r--r--Contact.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Contact.php b/Contact.php
index d186a22..212dc3c 100644
--- a/Contact.php
+++ b/Contact.php
@@ -113,8 +113,8 @@ class Contact extends LibertyContent {
if ( !$this->mInfo['x_coordinate'] and $this->mInfo['postcode'] and $this->mInfo['grideast'] <> '00000' ) {
$os1 = new OSRef( $this->mInfo['grideast']*10, $this->mInfo['gridnorth']*10 );
$ll1 = $os1->toLatLng();
- $this->mInfo['x_coordinate'] = $ll1->lat;
- $this->mInfo['y_coordinate'] = $ll1->lng;
+ $this->mInfo['y_coordinate'] = $ll1->lat;
+ $this->mInfo['x_coordinate'] = $ll1->lng;
}
$this->loadContentTypeList();
@@ -753,8 +753,8 @@ class Contact extends LibertyContent {
if ( $res['postcode'] and $res['grideast'] <> '00000' ) {
$os1 = new OSRef( $res['grideast']*10, $res['gridnorth']*10 );
$ll1 = $os1->toLatLng();
- $res['x_coordinate'] = $ll1->lat;
- $res['y_coordinate'] = $ll1->lng;
+ $res['x_coordinate'] = $ll1->lng;
+ $res['y_coordinate'] = $ll1->lat;
}
$this->mInfo['address'][] = $res;