Alfred Ernest Marples, Baron Marples of Wallasey

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

Downloads

Version Downloads Date Links
6.x-1.0 tar.gz (7.05 KB) | zip (7.66 KB) 2009-Aug-18 Notes

Maintainers for Ernest Marples

  • atomicjeep - 1 commit
    last: 2 years ago, first: 2 years ago

Issues for Ernest Marples

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here