On Mar 27, 12:38 pm, penmeister <[email protected]> wrote:
> Very new to this. But I am over the moon because I have actually got
> the store locator to work. Except what's wrong with Brisbane??

What's wrong with Brisbane? Where do we start...? [Only kidding]

> Type in
> Brisbane, and there is no result.
> It works for Sydney. If there are conflicting latlng for Bris, can I
> do a javascript/php if statement perhaps?

The code geocodes Brisbane and submits a request for
http://dev.recyclemybattery.com.au/includes/searchcentres_xml.php?lat=37.687293&lng=-122.400692&radius=25
which comes back with no markers.

It appears to be locating the wrong Brisbane. Asking for Brisbane AU
gets it right.

You could add ", Australia" to whatever your user enters, or use
the .setBaseCountryCode() method.
http://code.google.com/apis/maps/documentation/reference.html#GClientGeocoder.setBaseCountryCode

> And I'd love it if it could work on Australian postcodes, but how??

Try using something like 9999 AU (as above).

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to