Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚升级到 GeoIP2 并错过了 Region 字段。如何从 CityResponse 对象中提取区域?我正在使用 GeoLite2-City.mmdb
明白了 - cityResponse.getSubdivisions() 返回一个区域数组,最常见的是得到一个,但有时可能包含更精细的区域数据,例如