-
- $gmapsGeocoder = new GMapsGeocoder();
- $address = $gmapsGeocoder->getGeocodedAddress($this->address);
- Geocoder::getAreaId($address, 'administrativeArea');
- Geocoder::getAreaId($address, 'subAdministrativeArea');
- Geocoder::getAreaId($address, 'locality');
- XDB::execute("INSERT INTO profile_addresses (jobid, type, id, accuracy,
- text, postalText, postalCode, localityId,
- subAdministrativeAreaId, administrativeAreaId,
- countryId, latitude, longitude, updateTime,
- north, south, east, west)
- VALUES ({?}, 'hq', 0, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?},
- {?}, {?}, FROM_UNIXTIME({?}), {?}, {?}, {?}, {?})",
- $jobid, $this->address['accuracy'], $this->address['text'], $this->address['postalText'],
- $this->address['postalCode'], $this->address['localityId'],
- $this->address['subAdministrativeAreaId'], $this->address['administrativeAreaId'],
- $this->address['countryId'], $this->address['latitude'], $this->address['longitude'],
- $this->address['updateTime'], $this->address['north'], $this->address['south'],
- $this->address['east'], $this->address['west']);