While I appreciate your explanation, it doesn't change the fact that this has nothing to do with the settlement being near a COAST or not, which was what I was pointing out :)
It kind of does. If the city is near a coast there is a higher chance that the river, probably coming from the mountains, that needs a body of water will go to it.
So it would make sense that a city based by the coast would most likely have a river.