Hi All,
My apologies in advance, this question may not be the clearest, but I will try my best to articulate.
In my PHP script I'm processing a string. I want to grab whatever is in between brackets [ ] and execute a google local search (see http://code.google.com/apis/ajax/playground/#show_driving_directions) on the string. Once the search is processed I want to only grab the first result.
Just as a background, I have the PHP script executing anytime a "message" comes in.
I have all the regex stuff working, just need to know what the flow would be to call the google search api and return the first result.