resultの結果は、"XP"
<script type="text/javascript"> var zone = GeoHex.getZoneByCode("XM6"); var zone2 = GeoHex.getZoneByLocation(zone.lat,zone.lon,zone.getLevel()-1); var result = zone2.code; </script>