@Andrew / @Mike

Per Larry's comments ... do you know if the geocode via HTTP has a
callback functionality?

Essentially JSONP.

Thanks


On May 11, 12:49 am, "[email protected]" <[email protected]>
wrote:
> On May 10, 5:55 pm, mp- <[email protected]> wrote:
>
> > I could create a simply proxy on my server written in PHP/Java/etc to
> > simply fetch the geocode information via HTTP and then echo the long/
> > lat information back out but that seems like a silly middleman step
> > that shouldn't need to be done.
>
> > But, if no callback functionality exists - I will have to create a
> > proxy because JavaScript cannot fetch information for a URL not on the
> > same domain from which it's being called. That would be a crossdomain
> > exception.
>
> > So, does anyone know if the geocode via HTTP api supports the callback
> > functionality?
>
> If you have looked at the documentation and not found it and both
> Andrew and Mike have not said "yes", and told you how to do it, I
> suspect you have your answer.
>
>   -- Larry
>
>
>
> > On May 10, 3:41 pm, Andrew Leach <[email protected]>
> > wrote:
>
> > > On May 10, 4:33 pm, mp- <[email protected]> wrote:
>
> > > > What happens is that if I have to load the map first, it's a serial
> > > > blocker until the Google Map fully loads that I can then geocode and
> > > > query the database to find what push pins should be shown.
>
> > > > In the case of using the geocode via HTTP, I can attempt to parallel-
> > > > ize this step more.
>
> > > > So what I want to do (hopefully) is:
>
> > > > I can geocode via HTTP (super quick b/c of now big api download) the
> > > > long/latitude. Temporary display a *static* google map to make the web
> > > > page appear to load fast. Then at the same time (parrallel) do both
> > > > querying my database (using the long/latitude info) to find the
> > > > relevant push-pin markers while loading the full blown interactive
> > > > Google Map.
>
> > > So what you need to do is a two-stage data retrieval. Pass the user
> > > entry back to your server, geocode it there and get the server to
> > > construct the page with the static map <img> tag and (say) a hidden
> > > field with a unique reference in it. Then once the API is loaded do a
> > > GDownloadUrl to pass that unique reference to your server and get the
> > > relevant marker data.
>
> > > I think.
>
> > > 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