google latitude and displaying it in realtime HTML


I am in the process of setting up google latitude to track a project across europe and at the moment i have it setup to go to and at the moment i am importing the KML files but i would love to do it in real time.

Apparently there is a way using REST but i dont know where to start?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not very sure what do you refer with google latitude.

If you mean the latitude and longitude values of any point in the google maps you can get it through their google maps API, as those are data stored on API classes. You can ask for a determinate point in the maps through petitions to their API, but this won't be realtime, as you'll always have a delay between your request and the server response.

Maybe more info on what you are seeking to achieve could help us to guide you.
jonathanduane2010Author Commented:
well at the moment i have the html code to display where a user is and we can embed that to our site but apparently there is a way you you can have location history showing without  having to update using KML files

here is the guide but i cant really follow it
Didn't know that Google have such an API for positioning.

At first glance the documentation seems clear and complete. Although I still believe you won't receive "real time" info as you should count on a delay between your requests to REST server and their responses, I think it should be fair easy to build a function to stablish a dialog between Latitude API and your app.

Can you explain your exact problem? If the problem is that you are not familiar with REST I think all the info you need to start is on the link you've previously posted. Google's documentation usually is pretty clear.

If you find some rock on your path, ask it here and we'll try to help you moving it away.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

jonathanduane2010Author Commented:
Thanks a million for getting back to me,

So i have the code

<!-- Google Public Location Badge -->
<iframe src="" width="580" height="400" frameborder="0"></iframe>
<!-- To disable location sharing, you *must* visit and disable the Google Public Location badge. Removing this code snippet is not enough! -->
<?xml version="1.0" encoding="UTF-8"?>

so i was wondering to display the location history do i put in


and if so where do i put it?
That snippet seems to collect data somehow on your site. But I'm not sure what do you want to do with it?
jonathanduane2010Author Commented:
i want to display it, is that possible?
Well... if you make an AJAX call to

I supose that it will return something to you, then is up to you what do you do with that response. You can show it embeded on any container on your page or extract any info from it (I supose it will response a JSON object, so you should be able to get any specific info).

Just make the call on your client code and manage the return of the request to insert it where you want to show it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jonathanduane2010Author Commented:
how do i make an AJAX call to it?? and can i display it on a HTML page?
If you are using jQuery make an AJAX call is as easy as:

$.ajax({ async: false,
    url: "",
    success: function (variableThatWillStoreTheResponse) {
       //Here you can put code to display the result where you want to

If you are not using jQuery... well... you should do it. It's probably the best javascript framework out there. Easy, powerful and well documented. Take a look at it:
jonathanduane2010Author Commented:
and do i put it before the html code? and in this line

//Here you can put code to display the result where you want to

do i put in the web address? as i wherever i have the page hosted?
Let's see... I think we have here some type of misunderstanding.

As far as I'm understanding your question:

You want to ask to a google's server for some info. This info is located at a RESTful service accesible by this url:

If you paste that url into your web browser you should be able to see the response that google's server return to you.

By making the AJAX call what you do is to call that url from within your page without redirecting your browser to it, and store the response (whatever you've seen when you've pasted it on your browsers url bar) in a javascript variable (if it's a JSON response, which it'll probably be you will be able to load it into a javascript object).

You also want (as far as I'm understanding you) to load that response info (or a part of it) into your webpage.

To do so what you have to do is to use your javascript code to load the info you want to show from the responsed object into the container you want into your page.

Do you understand what I'm trying to state?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.