The IDs returned by the Maxminds GeoIP database aren't a perfect match to the IDs provided in the NaturalEarth Shapefiles. This code should fix special cases.