I will test it with real values and see if it works later today.
However, what I meant about the  <? ?> tags is that they don't change
their coloration when they are used within the <script> tags for the
api. They change everywhere else because it is recognized as PHP, but
for some reason they don't in the code for the API. Is <? = equivalent
to <? echo? I didn't quite understand what you meant.

I was also wondering if the method I'm using (which I got from
http://code.google.com/apis/maps/documentation/services.html#ReturningDirections)
is the right way to go about this. Is there a better or more correct
way of going about getting data from a SQL database, sending it to
Google and having the directions returned? There seems to be the XML
parsing and sending, but this seems like it should work too. I'm just
not sure which method to go about. Also, I'll post a link later today,
there are just some issues with the server right now. Thanks for the
help Andrew, I really appreciate it. And yea we are at Harvard. Its
our freshman year computer science project.

On Jan 8, 4:01 am, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 8, 2:51 am, Shadman <[email protected]> wrote:
>
> > My partners and I are trying to create a google map version of our
> > college campus using your API.
>
> ...using the Google API. "We" aren't Google. Well, Pamela is, but the
> rest of us aren't.
>
> > I've pasted
> > our PHP and the load function that is supposed to do the
> > aforementioned details. I'm just not quite sure why this isn't
> > working. Is there some sort of restriction to using PHP within the
> > API?
>
> No. All PHP is is a server-side language which creates the HTML and
> Javascript used by the API. Whether that code is created dynamically
> by PHP or ASP or read from a plain flat file is immaterial.
>
> > I've noticed that <? ?> (PHP tags) do not seem to show up as the
> > same color as they do in other parts of the HTML on my text editor.
>
> That's because your text editor recognises them as PHP tags.
>
> > Any help you can provide us with would be absolutely amazing.
>
> I haven't bothered quoting the code, but if that is really what you
> have, you should end up with a PHP error because the quote marks are
> all over the place. If you don't end up with a PHP error, then looking
> at the Javascript errors or the resulting HTML in your browser should
> provide a clue as to what's going on. You haven't given us a link to
> see that (see the posting guidelines).
>
> The best way of writing code like this, in my experience, is to write
> the statements using actual literal numbers or addresses instead of
> your PHP variables. Test it. Then replace the numbers and strings with
> the PHP which will insert the values in the right place. Using the
> shorthand <?= for <?echo [provided your server supports it] may make
> your code more readable.
>
> Are you really at Harvard?
>
> 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