{"id":976,"date":"2025-03-24T14:28:10","date_gmt":"2025-03-24T14:28:10","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-use-the-service-distance-field\/"},"modified":"2025-04-03T15:24:31","modified_gmt":"2025-04-03T14:24:31","slug":"how-to-use-the-service-distance-field","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-use-the-service-distance-field\/","title":{"rendered":"How to use the Service Distance field"},"content":{"rendered":"\n<p>GeoDirectory offers the &#8220;Service Distance&#8221; field. Read more here about how to set it up and use it.<\/p>\n\n\n\n<p>What is Service Distance<\/p>\n\n\n\n<p>Im a busy city there may be thousands of service providers, but far fewer who are able to provide service at your location. Service Distance makes it easy for your site visitors to search for those services providers who definitively provide service in your area.<\/p>\n\n\n\n<p>Many types of home service providers like plumbing or housecleaning operate within a specific radius of their main office. This means they will only be able to provide service to you if your location falls within that radius.&nbsp;<\/p>\n\n\n\n<p>The Service Distance option for GeoDirectory provides a field where your listing owners can enter their service distance and this will be used as the radius in near searches. When someone searches &#8216;near&#8217;, then the results will then include all the listings that have a service distance that overlaps the &#8216;near&#8217; coordinates.<\/p>\n\n\n\n<p>Setup<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-3 bg-image-fixed list-group list-group-flush list-group-numbered\">\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Open the custom post type settings.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Find and click the &#8220;Service Distance&#8221; field in the Pre-define fields section.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Configure the field label and description and save.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Click &#8220;Show advanced&#8221; to reveal the advanced field options<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Recommended: Set a default value. In the example below the default value is set for 10.<br><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Recommended: Set the field as &#8220;Required&#8221;. Now listing owners will need to enter a value for the field the next time they edit the listing.<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>Notes<\/p>\n\n\n\n<p>Once activated, the service distance &#8216;mode&#8217; will make all near searches into near searches based on service distance.<\/p>\n\n\n\n<p>Once activated, listings must have a value in the service distance field or they won&#8217;t be included in near search results. Without a value there is no way to calculate whether they should be included or not.<\/p>\n\n\n\n<p>Images&nbsp;<\/p>\n\n\n\n<p>Service Distance in the Pre-defined fields.<\/p>\n\n\n\n<p>Click to add to your add-listing form.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8oLLu21kFI.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Service Distance field options<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-q3eUoQSu87-517x1024.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory offers the &#8220;Service Distance&#8221; field. Read more here about how to set it up and use it. What is Service Distance Im a busy city there may be thousands of service providers, but far fewer who are able to provide service at your location. Service Distance makes it easy for your site visitors to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[842],"article\/categories":[211,432],"class_list":["post-976","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-service","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=976"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/976\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=976"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=976"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}