apiverve_streetaddressparser 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1e5bca644fab5874bf39aee04dde4e9d5faa539b9defc6daab9b6060d934931
4
- data.tar.gz: ad9021edb40a98976fc1e259fa718003c8cc861099e1944a2b499d6435801482
3
+ metadata.gz: 4b78a6b2ed771c47b6a40f5dfdbffc92faabad526eb685cbbdfc9cdce8d8f213
4
+ data.tar.gz: fdd3c78748b44d9c741919fc9bf26334ee2bfd628476033c102957159af4d577
5
5
  SHA512:
6
- metadata.gz: da1d3304f977f85124198fea6a853f63cca69441ceb0d6ee74725333c4598203a231d74c20c2df899c5823b34e763fcebfbb330f253825dba187b47067e93d9b
7
- data.tar.gz: aa8293ab7a78efde337af0b178b31589eab4cfbd25da5e3d7adf3c449bf0d3854b94d3696875d0b2c176bb5d0a0be623a386933ef0cc96e73e3e54faedca7796
6
+ metadata.gz: aff1aea84cf973c8248a0645c2556e01a8141ba69c19964e0121e9d1c1fc58f8596b3c9bdf486e44fbd62072b513b222a1a49af219c149ef685dddace29fc36b
7
+ data.tar.gz: 9f1dd3cf0223598b19145416a6bf65b96340921a5ad75f0116d73e060e5fc25d304154b244ee7801dc3449d78cfeea62e6567be98fee8b1077d4bda79d331631
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Street Address Parser API - Ruby Gem
2
2
 
3
- Street Address Parser is an address parsing API that breaks raw US street addresses into structured location components. Pass any single-line address string to extract the building number, street name, street type, city, state abbreviation, and postal code.
3
+ Street Address Parser is an address parsing API that breaks raw US street addresses into structured location components. Pass any single-line address string to extract the building number, directional, street name, street type, unit, city, state abbreviation, and postal code. Set standardize=true to get the address type (street, PO box or intersection) free, and on paid plans the mailing-format delivery line, last line and ZIP+4.
4
4
 
5
5
  ## Installation
6
6
 
@@ -35,7 +35,10 @@ require 'apiverve_streetaddressparser'
35
35
  client = APIVerve::Streetaddressparser::Client.new(api_key: "YOUR_API_KEY")
36
36
 
37
37
  # Make a request
38
- response = client.execute({ address: "1600 Amphitheatre Parkway, Mountain View, CA 90210" })
38
+ response = client.execute({
39
+ address: "1600 Amphitheatre Parkway, Mountain View, CA 90210",
40
+ standardize: true
41
+ })
39
42
 
40
43
  # Print the response
41
44
  puts response
@@ -46,7 +49,7 @@ puts response
46
49
 
47
50
  ```ruby
48
51
  begin
49
- response = client.execute({ address: "1600 Amphitheatre Parkway, Mountain View, CA 90210" })
52
+ response = client.execute({ address: "1600 Amphitheatre Parkway, Mountain View, CA 90210", standardize: true })
50
53
  puts response["data"]
51
54
  rescue APIVerve::Streetaddressparser::ValidationError => e
52
55
  puts "Validation error: #{e.errors.join(', ')}"
@@ -81,6 +84,12 @@ client = APIVerve::Streetaddressparser::Client.new(
81
84
  "cityName": "Mountain View",
82
85
  "stateName": "CA",
83
86
  "zipCode": "90210"
87
+ },
88
+ "standardized": {
89
+ "addressType": "street",
90
+ "deliveryLine1": "1600 Amphitheatre Pkwy",
91
+ "lastLine": "Mountain View, CA 90210",
92
+ "zipPlus4": null
84
93
  }
85
94
  }
86
95
  }
@@ -10,7 +10,7 @@ module APIVerve
10
10
  #
11
11
  # @example Basic usage
12
12
  # client = APIVerve::Streetaddressparser::Client.new(api_key: "your_api_key")
13
- # response = client.execute({ address: "1600 Amphitheatre Parkway, Mountain View, CA 90210" })
13
+ # response = client.execute({ address: "1600 Amphitheatre Parkway, Mountain View, CA 90210", standardize: true })
14
14
  # puts response
15
15
  #
16
16
  # @see https://apiverve.com/marketplace/streetaddressparser?utm_source=ruby&utm_medium=referral&utm_content=readme
@@ -19,7 +19,7 @@ module APIVerve
19
19
  DEFAULT_TIMEOUT = 30
20
20
 
21
21
  # Validation rules for parameters
22
- VALIDATION_RULES = { 'address' => { type: 'string', required: true } }
22
+ VALIDATION_RULES = { 'address' => { type: 'string', required: true }, 'standardize' => { type: 'boolean', required: false } }
23
23
 
24
24
  # Format validation patterns
25
25
  FORMAT_PATTERNS = {
@@ -4,6 +4,6 @@ require_relative "apiverve_streetaddressparser/client"
4
4
 
5
5
  module APIVerve
6
6
  module Streetaddressparser
7
- VERSION = "1.2.3"
7
+ VERSION = "1.2.5"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiverve_streetaddressparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -60,8 +59,10 @@ dependencies:
60
59
  version: '2.0'
61
60
  description: Street Address Parser is an address parsing API that breaks raw US street
62
61
  addresses into structured location components. Pass any single-line address string
63
- to extract the building number, street name, street type, city, state abbreviation,
64
- and postal code.
62
+ to extract the building number, directional, street name, street type, unit, city,
63
+ state abbreviation, and postal code. Set standardize=true to get the address type
64
+ (street, PO box or intersection) free, and on paid plans the mailing-format delivery
65
+ line, last line and ZIP+4.
65
66
  email:
66
67
  - hello@apiverve.com
67
68
  executables: []
@@ -80,7 +81,6 @@ metadata:
80
81
  source_code_uri: https://github.com/apiverve/streetaddressparser-API/tree/main/ruby
81
82
  changelog_uri: https://apiverve.com/changelog
82
83
  documentation_uri: https://docs.apiverve.com/ref/streetaddressparser
83
- post_install_message:
84
84
  rdoc_options: []
85
85
  require_paths:
86
86
  - lib
@@ -95,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.0.3.1
99
- signing_key:
98
+ rubygems_version: 4.0.23
100
99
  specification_version: 4
101
100
  summary: Street Address Parser API - Ruby Client
102
101
  test_files: []