I'm familiar with how to select the GMap zoom level to ensure that a given bounding box is displayed. This works fine for GeoName country records that include the bounding box. For admin regions I can make very rough guess using their child nodes but for leaf nodes like cities there appears to be no obvious method.
What method would you recommend for selecting the right GMap zoom level for cities?
I would try to make an educated guess with feature code and population. A feature with featureClass 'S' (Spot) has a small footprint and a big city with a huge population must have a large footprint.
Do you know of any code samples that computes the correct zoom levels. I suspect that the zoom level also needs to be also based on the pixel dimensions of the map.
I don't think that a magic formula exists that works everywhere. Just try a little what makes sense in your particular case and implement a simple rule of thumbs.