Hey all - I just stumbled upon this and I think it may be a better
solution - as it pre-fetches all the lat/lng values ahead of time and
stores them in the MySQL database so there doesn't need to be any
calls to google at runtime. What do you think about this option
instead of what I originally planned on doing? Any drawbacks?
http://code.google.com/apis/maps/articles/phpsqlgeocode.html#geocodephp
-Paul

On May 12, 1:04 pm, Marc Guay <[email protected]> wrote:
> > 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.
>
> Hi Paul,
>
> If I understand you correctly, you want to pass a PHP variable to
> Javascript.  This can be done with something like this:
>
> <?php
> $dynamic_php_variable = $_GET['whatever'];
> echo "<script type='text/javascript'> var dynamic_js_variable =
> ".$dynamic_php_variable."; </script>";
> ?>
>
> Marc
>
> --
> 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.

Reply via email to