Title: plugin is not taking correct distance
Last modified: May 1, 2018

---

# plugin is not taking correct distance

 *  Resolved [bogdanUlea](https://wordpress.org/support/users/bogdanulea/)
 * (@bogdanulea)
 * [8 years ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/)
 * Dear,
    I have installed the plugin and I have done the setup. I have costs per
   distance radius. All delivery is local. For example a delivery until 3km is free.
   3-6km is 2$ and so on… The issue is that the plugin or woocommerce is using zip
   code and not the city/street for distance caluclation and this way is not working
   because on same zip code could be addresses which are at 2km and addresses which
   are at 7km. What I have done wrong into setup? How can I fix it?
 * Thank you!
    Bogdan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-is-not-taking-correct-distance%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [8 years ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10236491)
 * Hi,
 * As there is no input for the address info in the shipping calculator form, I 
   recommend to disable the shipping calculator in the cart page. Use the calculation
   in the checkout page instead. We will be updating the plugin to allow user to
   input the address in the shipping calculator form.
 * Sofyan
 *  Thread Starter [bogdanUlea](https://wordpress.org/support/users/bogdanulea/)
 * (@bogdanulea)
 * [8 years ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10283356)
 * I have disabled the option ‘Activate the shipping calculator on the shopping 
   cart page’ from Woocommerce > settings > sending methodes > sending options and
   didn’t help. Any suggestions?
 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [8 years ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10283523)
 * Please try to activate the WooCommerce Shipping Options debug, then visit you
   checkout page, you will see an API URL request printed. Then paste the URL here.
 *  Thread Starter [bogdanUlea](https://wordpress.org/support/users/bogdanulea/)
 * (@bogdanulea)
 * [8 years ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10285060)
 * from the order page (/product/19-mammamia/) there is:
    API Request URL: [https://maps.googleapis.com/maps/api/distancematrix/json?key=**********&mode=driving&avoid&units=metric&language=nl_BE&origins=50.97986176329557%2C3.533301233135262&destinations=Belgi%C3%AB](https://maps.googleapis.com/maps/api/distancematrix/json?key=**********&mode=driving&avoid&units=metric&language=nl_BE&origins=50.97986176329557%2C3.533301233135262&destinations=Belgi%C3%AB)
 * and on cart page (/cart/) there is:
    Cached data: {“distance”:116.789,”distance_text”:”
   117 km”,”response”:{“destination_addresses”:[“Belgi\u00eb”],”origin_addresses”:[“
   Gentstraat 35, 9800 Deinze, Belgi\u00eb”],”rows”:[{“elements”:[{“distance”:{“
   text”:”117 km”,”value”:116789},”duration”:{“text”:”1 uur 17 min.”,”value”:4603},”
   status”:”OK”}]}],”status”:”OK”}}
 * and on checkout page (/checkout/):
    Cached data: {“distance”:116.789,”distance_text”:”
   117 km”,”response”:{“destination_addresses”:[“Belgi\u00eb”],”origin_addresses”:[“
   Gentstraat 35, 9800 Deinze, Belgi\u00eb”],”rows”:[{“elements”:[{“distance”:{“
   text”:”117 km”,”value”:116789},”duration”:{“text”:”1 uur 17 min.”,”value”:4603},”
   status”:”OK”}]}],”status”:”OK”}}
 * but should not be like this because the distance should be 5.5km.
 *  Thread Starter [bogdanUlea](https://wordpress.org/support/users/bogdanulea/)
 * (@bogdanulea)
 * [8 years ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10285089)
 * do you want to login an check it? I can give you temporary access but I need 
   an email address.
 *  Thread Starter [bogdanUlea](https://wordpress.org/support/users/bogdanulea/)
 * (@bogdanulea)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10292308)
 * Hi Sofyan. België is a country. In english is Belgium. I could send you your 
   account details by email. Can you send you email to my? My email is [bogdan@ulea.be](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/bogdan@ulea.be?output_format=md)
 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10293173)
 * Please send it to sofyansitorus at gmail dot com
 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10330261)
 * Issue caused by wrong configuration
 *  [pryme](https://wordpress.org/support/users/pryme/)
 * (@pryme)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10660969)
 * Hello,
    i have almost the same Problem. When the api is called only Postcode,
   City, Country is transfered. So the distance is always to the middle of the Postcode,
   but noch to the exact adress. What configuration error caused this Problem? Thanks
   in advance.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘plugin is not taking correct distance’ is closed to new replies.

 * ![](https://ps.w.org/wcsdm/assets/icon-256x256.png?rev=3405790)
 * [WooReer](https://wordpress.org/plugins/wcsdm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wcsdm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wcsdm/)
 * [Active Topics](https://wordpress.org/support/plugin/wcsdm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wcsdm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wcsdm/reviews/)

## Tags

 * [address](https://wordpress.org/support/topic-tag/address/)
 * [zip codes](https://wordpress.org/support/topic-tag/zip-codes/)

 * 9 replies
 * 3 participants
 * Last reply from: [pryme](https://wordpress.org/support/users/pryme/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-is-not-taking-correct-distance/#post-10660969)
 * Status: resolved