%% Animate Sequence of Latitude and Longitude Coordinates
% Load a sequence of latitude and longitude coordinates.

data = load('geoSequence.mat');

% Create a geographic player and configure it to display all points in its history.

zoomLevel = 17;
player = geoplayer(data.latitude(1),data.longitude(1),zoomLevel,'HistoryDepth',Inf);

% Display the sequence of coordinates.

  for i = 1:length(data.latitude)
      plotPosition(player,data.latitude(i),data.longitude(i));
      pause(0.01)
  end

% Copyright 2012 The MathWorks, Inc.