README.md in geolookup-0.6.2 vs README.md in geolookup-0.6.4
- old
+ new
@@ -83,9 +83,37 @@
# US State Codes
Geolookup::USA::State.codes
# => [1, 2, 4, ...]
+# US Territory State Codes
+Geolookup::USA::State.territory_state_codes
+# => [60, 66, 69, ...]
+
+# US Territory State Names
+Geolookup::USA::State.territory_state_names
+# => ["American Samoa", "Guam", ...]
+
+# Determine if state is territory
+
+# With code
+Geolookup::USA::State.territory?(60)
+# => true
+
+Geolookup::USA::State.territory?('60')
+# => true
+
+# With state name
+Geolookup::USA::State.territory?('Guam')
+# => true
+
+# With state abbreviation
+Geolookup::USA::State.territory?('GU')
+# => true
+
+Geolookup::USA::State.territory?('AZ')
+# => false
+
# US County Examples:
# Given a state code and county code return the county name
Geolookup::USA::County.code_to_name(1, 1)
# => "AUTAUGA"