ZERO_RESULTS response for distance

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #94746
    Brian
    Guest

    As you can see in the below snip we are suddenly getting a ZERO_RESULTS response for distance. We do believe this same address was working before. Worse this is being applied as a 0 in our table causing reduced shipping costs. My question is how can we prevent invalid address as being computed as a zero and how did this address suddenly became invalid?

    2022-05-05T03:18:55+00:00 INFO Shortcode `distance`: Data: stdClass Object
    (
        [destination_addresses] => Array
            (
                [0] => 8954 Scotsworth St, Post Falls, ID 83854, USA
            )
    
        [origin_addresses] => Array
            (
                [0] => 1820 N University Rd, Spokane Valley, WA 99206, USA
            )
    
        [rows] => Array
            (
                [0] => stdClass Object
                    (
                        [elements] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [status] => ZERO_RESULTS
                                    )
                            )
                    )
            )
    
        [status] => OK
    )
    #94747
    Brian
    Guest

    I believe I solved this myself incase anyone else has issue:

    My problem was that there was a road closed in route.

    And to filter out no_result responses.  I set minimum shipping distance to .0001 mi.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.