Click here to Skip to main content
15,893,668 members
Articles / Web Development / HTML

Animating Google Earth (3D) & Map (2D) for Live GPS via Ajax and RestFul Web Service

Rate me:
Please Sign up or sign in to vote.
4.97/5 (32 votes)
11 May 2011CPOL15 min read 135.1K   5.1K   97  
To get a 3D model and a marker moving on Google earth and map respectively, showing the live tracking of GPS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

[ServiceContract]
public interface IRESTfulService
{

    [OperationContract]
    [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "LiveLocation/json")]
    LatestPosition GetLatestPosition();

}

[DataContract]
public class LatestPosition
{
    [DataMember]
    public string lat = "";
    [DataMember]
    public string lon = "";
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer Momentum Technology
Australia Australia
latest article: http://www.codeproject.com/KB/aspnet/AnimatingGoogleEarth_Map.aspx

Comments and Discussions