Gillingham (Kent) (GLM)
Medway, South East
The Kent and Dorset stations share the name Gillingham. They have different station codes and entirely different journeys.
Look for GLM for Gillingham (Kent) or GIL for Gillingham (Dorset) on the itinerary and on the last ticket in your combination.
Medway, South East
Dorset, South West