Unfortunately the intended clients can't run javascript. The plan is
to run it from a J2ME application so javascript isn't an option (or is
it? I had kind of assumed that J2ME wouldn't be able to run javascript
but I could be wrong about that)

To figure out how to do this, I ran a network capture on the full API
when it was requesting directions and saw the HTTP request it was
making. My code is making exactly the same request that the javascript
is making, it's just using php to make the request from my server
rather than having javascript do it from the client.

I was wondering about the premier API too. Basically, if I was to pay
for the usage of it could an exception be made?

I've put an awful lot of work into this and I'd hate to drop the whole
thing because Google requires me to make the request using javascript
and not php

On Jan 21, 6:27 pm, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 21, 5:17 pm, seamusmorton <[email protected]> wrote:
>
> > Hi andrew, thanks for your reply. HTTP access to the driving
> > directions is not available directly but when making the request from
> > the API it sends back the direction string in the header and it can be
> > extracted.
>
> > I know it's not really meant to be used like that but that information
> > is made available to me in the API
>
> Hmm. I don't think it's been mooted to use the API to construct a URL
> to create a static map. The feeling (as in that Issue) has been that
> everything would be done server-side and a static map would be used
> because the client couldn't run Javascript. If the client can run
> Javascript, then use an ordinary dynamic map.
>
> However: something like IE Mobile *can* run Javascript but can't cope
> with the full Maps API, so this might be a compromise arrangement.
>
> There is this in the Terms:
>
> 10. Except as explicitly permitted in Section 7, you must not (nor may
> you permit anyone else to):
> 10.1 access or use the Service or any Content through any technology
> or means other than those provided in the Service, or through other
> explicitly authorized means Google may designate;
>
> Parsing HTTP headers falls foul of that; but if you can use a
> GDirections object and examine each GStep in that, it would be ok.
>
> 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