Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Replace the phone book widget's mapping service - Like this...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Replace the phone book widget's mapping service - Like this...
Authored by: pediddle on May 01, '05 04:33:02PM

Google doesn't always understand the country code, and it seems to need commas separating address, city, and state, so here's string that might work better for some addresses. Note that Google ignores the "country=..." parameter altogether, so if you want directions outside of the US, this probably won't work...

<tt>http://maps.google.com/maps?country=%@&q=%@,+%@,+%@+%@&bogus=+++++++++++++++++++++</tt>

This also hides the extra spaces in a bogus field and should be exactly the length required.



[ Reply to This | # ]