I'm using Multimap for geocoding on my site and quickly knocked up this include file. It would be really handy if it was included.

Currently it only geocodes for UK (I believe Multimap supports US et al too but I haven't got the code for that yet). I've done some testing on my site and it appears to work. Most errors are logged to watchdog in the event of a failed lookup.

From my experience, the geocode results from multimap are more accurate than Yahoo & Google...

FYI: I had to rename the file to a ".txt" as I wasn't allowed to attach .inc files.

CommentFileSizeAuthor
multimap.inc_.txt3.16 KBnicholasthompson

Comments

ankur’s picture

Version: 6.x-3.1-rc1 » 7.x-3.x-dev
Status: Needs review » Needs work

I'd like to re-roll this and commit this to the 7.x-3.x and 7.x-4.x branches once we resolve #1083128: Change country code for UK to GB

The only thing that looks like it would need to be changed is the 'uk' to 'gb' once the other patch goes in.