| Summary | Correct mapquest selection for Canada |
| Queue | Turba |
| Queue Version | 1.2.2 |
| Type | Bug |
| State | Resolved |
| Priority | 1. Low |
| Owners | |
| Requester | davidc (at) advan (dot) ca |
| Created | 09/03/2004 (7735 days ago) |
| Due | |
| Updated | 09/03/2004 (7735 days ago) |
| Assigned | |
| Resolved | 09/03/2004 (7735 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Correct mapquest selection for Canada
Queue ⇒ Turba
of Cdn postal codes that changes the country to "CA". However,
mapquest requires the url to have "province" instead of "state". Apply
the same fix.
Enclosed are lines 67-74 of display.inc from Turba 1.2.2 final.
if (!empty($addressParts[3])) {
if (preg_match('|[a-zA-Z]\d[a-zA-Z]\s?\d[a-zA-Z]\d|', $addressParts[4])) {
$mapurl .= '&province=' . urlencode($addressParts[3]);
}
else {
$mapurl .= '&state=' . urlencode($addressParts[3]);
}
}
P.S. This was awesome that it auto-discovered and provided a map option!!!
dbc.