I've expanded location.dk.inc with map links to the Danish map site, findvej.dk.
Patch attached :)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | location.dk_.inc_.diff | 4.16 KB | kaerast |
| #4 | danish-location.patch | 5.63 KB | mikl |
| #2 | location.dk_.inc_.patch | 3.2 KB | mikl |
| dk.location.patch | 3.23 KB | mikl |
Comments
Comment #1
bdragon commentedSome nits:
* Don't use sprintf. Concatenation is fine. Using url() to do the heavy lifting is best.
* findvej.dk seems to be fine with using just a postcode, there should be a case for that, no?
* I'd prefer lat/lon over the rest of the choices, rather than the other way around. This makes it easier on the geocoder.
* You should use location_has_coordinates() to check whether the location has latitude / longitude set. This catches corner cases like stuff set to "0.0000" and so forth.
* You're checking if the fields are set, but you aren't checking if they are empty or not when determining the link.
* The raw ampersand when you're putting together the lat/lon url is suspect. In HTML this must be changed to the & entity.
* You accidentally joined the cvs id line with the top line of the file. (I automatically fix stuff like this when testing patches, so it's not actually a problem as such.)
Comment #2
miklOkay, re-roll:
Comment #3
yesct commentedCan someone try this new patch?
Comment #4
miklI've made a new patch with support for the Danish public transportation guide, Rejseplanen.dk :)
Comment #5
kaerast commentedThis latest patch isn't applying for me for some reason. I therefore attach my own version which I rolled based upon yours.
Comment #6
ankur commentedCommitted to DRUPAL-6--3 and HEAD.
Comment #7
yesct commentedhttp://drupal.org/cvs?commit=347480