Skip to content

Commit 1a170a4

Browse files
committed
Update code.md
1 parent c1c28b6 commit 1a170a4

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

docs/source/code.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,38 @@ Retrieve geolocation information for an IP address.
2525
:return: Returns the geolocation information in array. Refer below table for the fields avaliable in the array
2626
:rtype: array
2727
28-
{py:function} getAllAsync(ipAddress)
28+
**RETURN FIELDS**
29+
30+
| Field Name | Description |
31+
| ---------------- | ------------------------------------------------------------ |
32+
| countryShort | Two-character country code based on ISO 3166. |
33+
| countryLong | Country name based on ISO 3166. |
34+
| region | Region or state name. |
35+
| city | City name. |
36+
| isp | Internet Service Provider or company\'s name. |
37+
| latitude | City latitude. Defaults to capital city latitude if city is unknown. |
38+
| longitude | City longitude. Defaults to capital city longitude if city is unknown. |
39+
| domain | Internet domain name associated with IP address range. |
40+
| zipCode | ZIP code or Postal code. [172 countries supported](https://www.ip2location.com/zip-code-coverage). |
41+
| timeZone | UTC time zone (with DST supported). |
42+
| netSpeed | Internet connection type. |
43+
| iddCode | The IDD prefix to call the city from another country. |
44+
| areaCode | A varying length number assigned to geographic areas for calls between cities. [223 countries supported](https://www.ip2location.com/area-code-coverage). |
45+
| weatherStationCode | The special code to identify the nearest weather observation station. |
46+
| weatherStationName | The name of the nearest weather observation station. |
47+
| mcc | Mobile Country Codes (MCC) as defined in ITU E.212 for use in identifying mobile stations in wireless telephone networks, particularly GSM and UMTS networks. |
48+
| mnc | Mobile Network Code (MNC) is used in combination with a Mobile Country Code(MCC) to uniquely identify a mobile phone operator or carrier. |
49+
| mobileBrand | Commercial brand associated with the mobile carrier. You may click [mobile carrier coverage](https://www.ip2location.com/mobile-carrier-coverage) to view the coverage report. |
50+
| elevation | Average height of city above sea level in meters (m). |
51+
| usageType | Usage type classification of ISP or company. |
52+
| addressType | IP address types as defined in Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6). |
53+
| category | The domain category based on [IAB Tech Lab Content Taxonomy](https://www.ip2location.com/free/iab-categories). |
54+
| district | District or county name. |
55+
| asn | Autonomous system number (ASN). BIN databases. |
56+
| as | Autonomous system (AS) name. |
57+
```
58+
59+
```{py:function} getAllAsync(ipAddress)
2960
Retrieve geolocation information for an IP address asynchronously.
3061
3162
:param str ipAddress: (Required) The IP address (IPv4 or IPv6).

0 commit comments

Comments
 (0)