ip_zip: Functions to retrieve IP address and ZIP code from IP

ip_zipR Documentation

Functions to retrieve IP address and ZIP code from IP

Description

These are just helper shortcut functions. get_ip_address retrieves a computer's IP address from https://ipinfo.io/what-is-my-ip. This is easier than getting the IP right off local computer because of bogon IP addresses. get_zip pulls ZIP code location from https://ipapi.co/

Usage

get_ip_address()

get_zip()

Value

Either the IP address that a web browser sees (get_ip_address), or a zip code (get_zip)


pbr documentation built on Aug. 25, 2023, 5:14 p.m.

Related to ip_zip in pbr...