Returns broadcast region / geo-lookup information for a given
postal (or ZIP) code from the NHL web service endpoint
postal-lookup/{postalCode}. Used internally by NHL.com to determine
local broadcast rights.
Value
A data frame (fastRhockey_data) with the following columns:
| col_name | types | description |
| stateProvince | character | State or province for the postal code. |
| networkType | character | Broadcast network type for the region. |
| county | character | County for the postal code. |
| postalCode | character | Postal or ZIP code looked up. |
| country | character | Country for the postal code. |
| city | character | City for the postal code. |
| teamName.default | character | Local broadcast team name (default). |
| teamName.fr | character | Local broadcast team name (French). |
Examples
# \donttest{
try(nhl_postal_lookup(postal_code = "10001"))
#> stateProvince networkType county postalCode country city
#> 1 NY 50 MHT New York 10001 US Manhattan
#> 2 NY 50 MHT New York 10001 US Manhattan
#> 3 NY 50 MHT New York 10001 US Manhattan
#> teamName.default teamName.fr
#> 1 New Jersey Devils Devils du New Jersey
#> 2 New York Islanders Islanders de New York
#> 3 New York Rangers Rangers de New York
# }
