Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Note: This module and the associated project is now redundant
Provides an wrapper API which lets other modules query http://ernestmarples.com to convert a UK Postcode to LAT LON co-ordinates.
Use in your module or hook up to a CCK computed field like so:
This code check if the node has a postcode field if so then send it onto Mr Marples and then store the the LAT or LON in the computed field. Then use that computed field for some mapping magic :)
if (!$node->nid) {
node_save($node);
}
if (!$node->field_lac_postcode['0']['value']) {
}else {
if (module_exists('ernest_marples')){
$result = get_ernest_marples($node->field_lac_postcode['0']['value']);
$node_field[0]['value'] = $result['lat'];
}
}
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - Obsolete
Use of this project is deprecated. - Module categories: Integrations
- Created by atomicjeep on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.