Trace

main

Get geocode, calling code, IP, etc. from 1.1.1.1 trace info.
tomdai/Trace

Trace

Get geocode, calling code, etc. from 1.1.1.1 trace info.

Requires Apple operating systems released in WWDC21 and later.

Usage Examples

await Trace.ip

Returns Optional("207.38.1.1")

await Trace.geocode

Returns Optional("US")

await Trace.callingCodes

Returns ["1"]
Or ["1809","1829","1849"] (Can be multiple codes for geocode like "DO")
Or [] (Can be empty if no result is found)

await Trace.primaryCallingCode

Returns Optional("1")

await Trace.time

Returns Optional(2022-02-03 17:33:40 +0000) (The time at which the request is received)

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Oct 20 2024 15:00:58 GMT-0900 (Hawaii-Aleutian Daylight Time)