Dark of the Sun (The Mercenaries in the UK) (1968)
Filmed in Jamaica and a train played a major role in the movie that featured Rod Taylor and NFL legend Jim Brown as a band of mercenaries. The steam locomotive used was a famous postwar Engine 54 in the Jamaica Railway System and was destroyed as part of the film.
And then a couple of entries from the NY area passenger trains along with a couple of humorous points.
Coming To America (1988)
After arriving at JFK Airport, Eddie Murphy and Arsenio Hall take a taxi to "
QUEENS" where they stay in a seedy rental in Long Island City. As the cab arrives at the rental it drives by under an elevated train... which is actually the Hewes Street Station in Williamsburg,
BROOKLYN.
FYI, the tenement was at Hooper Street & South 5th Street.
Shaft (2019)
Opening scene with the night lights of New York and a northbound F or G elevated train is seen leaving the Smith/9th Street Station (the highest station above ground in the system) in
BROOKLYN on it's curve to go underground at the next stop at Carroll Street. The camera zooms towards the train and then the next frame is of a close up of an elevated subway train zipping across the screen and the camera pans down to street level which is to represent Harlem... in
MANHATTAN.
That Girl (1966-71)
In the aforementioned TV show by me and others, the Penn Central train is carrying Marlo Thomas towards Manhattan east from
NEW JERSEY, when she actually lives north of the City in Brewster,
PUTNAM COUNTY, NY.
Bearing in mind that 99.9999% of viewers watching a movie or TV show don't care about geography
, I always find it humorous watching film made in areas in which I have lived (New York, South Florida, Jamaica, etc.) and other areas that I know well and see geographic impossibilities or inconsistencies, such as car chases over 1-2 mile long bridges that take 10 minutes to cross, but I digress lest I stray from the topic.