Paul, you might benefit from looking at this PHPGoogleMapAPI class that you could use - http://code.google.com/p/php-google-map-api/ . More specifically, you might get a better idea of how to geocode the request without user input by looking at the getGeoCode method in the class itself as well as the "geocoding" example.
On May 12, 12:45 pm, mrescandon <[email protected]> wrote: > Hi - I'll preface this question with stating that I am really not an > experienced programmer. I'm working on a webapp for iPhone/Android and > am hacking together some php/MySQL/javascript code that so far seems > to be working (mostly reading tutorials and copying and pasting until > I figure something out). That said.. > > I've gotten a slight handle on how API V3 works and how one can use > the geocoding function based on the sample code that google provides > at:http://code.google.com/apis/maps/documentation/v3/services.html#Statu... > > What I can't seen to figure out is how to initiate the geocoding > function when the page loads based on a variable that will be passed > to it via PHP. Basically - if I can simply figure out how to hardcode > an address into an HTML file that will initiate the geocode function I > will have my desired goal. My app will not ask for user input to > initiate geocoding but will rather show a map based on the location of > a given record. So far all the examples that I've seen start with some > static latlng value in the code and then only geocode when the user > enters and address and hits a submit button. > > Any help would be appreciated! Thanks so much! > > -Paul > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" 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 > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
