First introduce the JavaScript API file
This API provides a total of 6 interfaces, geoip_country_code(){country code}, geoip_country_ name(){country name}, geoip_city() {city name}, geoip_region(){region code}, geoip_latitude(){longitude },geoip_longitude(){latitude}.
The region code is a code used internally by MaxMind. The numbers given by the provincial administrative regions in various countries in phonetic order can be converted into administrative region names through certain methods.
Usage example: