title: Animate a point moving along path between two points
body: <p>I want to animate a point moving along a path from one location to another on the map.</p>
  
  <p>For example, I drawn a path from New York to New Delhi, using Geodetic transform. Eg. taken from docs <a href="https://scitools.org.uk/cartopy/docs/latest/matplotlib/intro.html#adding-data-to-the-map" rel="nofollow noreferrer">Adding data to the map</a></p>
  
  <pre><code>plt.plot([ny_lon, delhi_lon], [ny_lat, delhi_lat],
       color='blue', linewidth=2, marker='o',
       transform=ccrs.Geodetic(),
       )
  </code></pre>
  
  <p>Now i want to move a point along this path.</p>
  
  <p>My idea was to somehow get some (say 50) points, along the path and plot a marker on each point for each frame. But I am not able to find a way to get the points on the path. </p>
  
  <p>I found a function <a href="https://scitools.org.uk/cartopy/docs/v0.14/crs/index.html#cartopy.crs.CRS.transform_points" rel="nofollow noreferrer"><code>transform_points</code></a> under class<code>CRS</code>, but I am unable to use this, as this gives me the same number of points i have, not the points in between.</p>
  
  <p>Thanks in advance!</p>