When entering a fuel-up you are able to enter the % of "City Driving".
At one point in time the (US) EPA decided that any speed at or under 21 mph is City Driving. Highway Driving is at or above 48 mpg. The criteria they use now is far more complicated.
Although it is not an exact science "average speed " can help you decide the City/Highway mix
The "Average Speed" is one of the items available on the dash read out of many cars. Make a note of it and then zero it out every time you fuel up.
The chart below will list the % that you should fill in:
I'd define 'city driving' by the 'details' of the trip: more vehicles, traffic lights, 90-degree turns, joining to larger roads, pedestrian crossings, and so on.
Does some calm cruising at 30mph on a deserted main road 65% count as city driving? It has the main advantage of it (lower speed), but not too much of the disadvantages.
I usually don't even count villages as city driving - you can often just roll through them without meeting any obstacle.