[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-703151-105":59,"doc-detail-703151-en":130,"doc-similar-703151":178},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","salesforce-maps-apex-developer-guide-version-680-winter-27","Salesforce Maps Apex Developer Guide - Version 68.0 - Winter ’27","","Salesforce Maps Apex Developer Guide (Winter ’27) describes how to use Apex methods to perform Salesforce Maps operations without relying on the UI. It covers chapter-based topics including requirements, assignment planning, route creation and retrieval, boundary and distance calculations, address geocoding in single or batch, dataset and alignment deletion, and retrieval of hosted geographical data and territories. Guidance includes API performance considerations, server error handling with retry and back-off strategies, and notes for avoiding uncommitted work errors in flows, processes, and triggers.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/salesforce-maps-apex-developer-guide-version-680-winter-27/703151/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/salesforce-maps-apex-developer-guide-version-680-winter-27/703151.png","ImageObject",300,407,{"name":92,"@type":93},"awa","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-13",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of the Salesforce Maps Apex Developer Guide?","Question",{"text":112,"@type":113},"It explains how to use Apex methods to run Salesforce Maps operations without using the UI, including routing, geocoding, and geographic data retrieval.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What should be considered for API performance when using Apex methods?",{"text":117,"@type":113},"Heavy reliance on the API can decrease performance and cause server errors, but Apex methods don’t count against org API limits.",{"name":119,"@type":110,"acceptedAnswer":120},"How should you handle server errors when invoking Apex methods?",{"text":121,"@type":113},"For 5xx or throttling, retry requests and use an exponential back-off with a maximum delay and maximum retries; for 4xx, revise requests to fix issues before retrying.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},703151,1794561718,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":39,"preview_urls":145},3985747858093,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Salesforce Maps Apex Developer Guide  \nVersion 68.0, Winter ’27  \nLast updated: July 22, 2026  \n© Copyright 2000–2026 Salesforce, Inc. All rights reserved. Salesforce is a registered trademark of Salesforce, Inc., as are other names and marks. Other marks appearing herein may be trademarks oftheir respective owners.  \nCONTENTS  \nChapter 1: Overview .................................................. 1  \nChapter 2: Requirements .............................................. 2  \nChapter 3: Apex Methods .............................................. 3  \nAssign Records to Owners Using an Assignment Plan ............................. 4  \nCreate a Route ....................................................... 7  \nCreate Routes for Specific Users ............................................ 9  \nCreate Routes from Visit Plan .............................................. 11  \nGet a Route ......................................................... 13  \nGet the Boundary Information ............................................ 40  \nGet the Distance Matrix ................................................. 42  \nGet the Geographical Coordinates of an Address ............................... 47  \nGet the Geographical Coordinates of Addresses in Batch .......................... 48  \nPermanently Delete Datasets and Alignments ................................. 53  \nRetrieve Data That Salesforce Maps Hosts .................................... 54  \nRetrieve the Geographical Data of Country-Specific Shapes ........................ 66  \nRetrieve the Geographical Data of Polygons ................................... 68  \nRetrieve the Territories in Which the Records Reside .............................. 70  \nCHAPTER 1  \nOverview  \nGet your sales and service teams to spend more time building customer relationships and less time on the road when you fine-tune your Salesforce Maps implementation using Apex. For example, return estimated travel distances and times between locations, get geographical coordinates for addresses, and retrieve geometric data for areas and perimeters.  \nAPI Performance Considerations and Guidelines  \nIf your processes rely heavily on the API, you can experience decreased performance and server errors. Apex methods don’t count against org API limits.  \n\n| Server Error | Potential Resolution |\n| --- | --- |\n| (5xx) or throttling | Retry your requests.\u003Cbr>For better flow control, you can implement an exponential back-off algorithm. Such algorithms use progressively longer wait times between retries for consecutive error responses. Implement a maximum delay interval and a maximum number of retries.\u003Cbr>You can base those maximums on performed operations and other local factors, such as throughput capacities or request throttling. |\n| (4xx) | Revise your requests to correct any problems before trying again. |\n\nSEE ALSO:  \nSalesforce Help: Salesforce Maps Apex Developer Guide  \nCHAPTER 2 Salesforce Maps Apex Requirements  \nThis guide introduces you to the Apex methods you can use to perform Salesforce Maps operations without using the UI.  \nBefore using Apex methods, ensure that you have:  \n• Access to Apex classes using Enterprise, Unlimited, or Developer Editions  \n• Salesforce Maps installed  \n• A license for Salesforce Maps or Salesforce Maps Advanced. Methods to get current location and location history also require a license for Salesforce Maps Live Tracking  \n• Access to Salesforce Maps objects and Apex classes granted through a permission set: SF Maps, SF Maps Advanced, SF Maps Live Admin, Maps User, or Maps Admin  \n Warning: If you invoke methods within a flow, process builder, or trigger, avoid uncommitted work errors when you perform one of the following.  \n• Call the methods through a future method  \n• Call the methods as queueable  \nUncommitted work errors can also arise if calling out to Salesforce Maps methods more than onetime in a single transaction and the Salesforce Maps token hasn’t refreshed in the last 24 hours. If t","cbCaiepgWTCLl1Di","https://ap.wps.com/l/cbCaiepgWTCLl1Di","pdf",947951,76,"English","# Chapter 1: Overview\n# Chapter 2: Requirements\n# Chapter 3: Apex Methods\n## Assign Records to Owners Using an Assignment Plan\n## Create a Route\n## Create Routes for Specific Users\n## Create Routes from Visit Plan\n## Get a Route\n## Get the Boundary Information\n## Get the Distance Matrix\n## Get the Geographical Coordinates of an Address\n## Get the Geographical Coordinates of Addresses in Batch\n## Permanently Delete Datasets and Alignments\n## Retrieve Data That Salesforce Maps Hosts\n## Retrieve the Geographical Data of Country-Specific Shapes\n## Retrieve the Geographical Data of Polygons\n## Retrieve the Territories in Which the Records Reside","[{\"question\":\"What is the purpose of the Salesforce Maps Apex Developer Guide?\",\"answer\":\"It explains how to use Apex methods to run Salesforce Maps operations without using the UI, including routing, geocoding, and geographic data retrieval.\"},{\"question\":\"What should be considered for API performance when using Apex methods?\",\"answer\":\"Heavy reliance on the API can decrease performance and cause server errors, but Apex methods don’t count against org API limits.\"},{\"question\":\"How should you handle server errors when invoking Apex methods?\",\"answer\":\"For 5xx or throttling, retry requests and use an exponential back-off with a maximum delay and maximum retries; for 4xx, revise requests to fix issues before retrying.\"}]","Salesforce Maps Apex Developer Guide - Version 68.0 - Winter ’27 | PDF",192,[146,150,154,158,162,166,170,174],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/580c6b21610744e45cc4fae05c6fcd35.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/3b83eb35bbcec28b50d67b1ecbe0bd4b.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/877c455c396d10b6bf155222439c14e4.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/7390bfb2d0f0d2c2c370068a9fb36a0a.webp",980,1268,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/1e0e1a87427a020e2e9f6ab949de48ee.webp",979,1267,{"page_no":29,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/408a10cf5bf2855366cb14d46172f256.webp",978,1265,{"page_no":34,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/1ca13a42837a745234341e299d483a5f.webp",977,1264,{"page_no":39,"url":175,"width":176,"height":177},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/b898386044ad73add747ff0ed40a56e6.webp",976,1263,{"list":179,"token":66},[180,186,192,198,205,212,218,224,230,237],{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":81,"category_name":30,"create_tm":185},703155,"Salesforce Knowledge Developer Guide - Chapter 1 Developing with Salesforce Knowledge","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013421037/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=mvcZu3OE%2BjVWGeDoLQSSitw13qc%3D","salesforce-knowledge-developer-guide-chapter-1-developing-with-salesforce-knowledge",1794561727,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":19,"category_name":30,"create_tm":191},686702,"ServiceNow CSM Integration with Salesforce - Reference Implementation - New York release Sep 2019","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001081378/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=NQtieK1ZxcFUmnzhFDa4Fs3ybEs%3D","servicenow-csm-integration-with-salesforce-reference-implementation-new-york-release-sep-2019",1794060894,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":19,"category_name":30,"create_tm":197},703150,"Actions Developer Guide - Version 68 - Winter ’27","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013420930/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=AI%2BCFTD5oERNIsV16qtGOgxwuqg%3D","actions-developer-guide-version-68-winter-27",1794561717,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":30,"create_tm":204},673477,"Salesforce DX Developer Guide - Version 68.0 - Release notes and setup overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990884811/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=ySW4eQrNHckBjQm02y3Ft040rmA%3D","salesforce-dx-developer-guide-version-680-release-notes-and-setup-overview",13,1793644474,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},656406,"Apex Developer Guide - Version 68.0 - Winter ’27","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975308709/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=KxmgQ3l2cGEzSyVYevB2goI2ZZY%3D","apex-developer-guide-version-680-winter-27",22,1792968277,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":34,"category_name":30,"create_tm":217},681827,"Platform Events Developer Guide - Version 68 - Developer guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999226531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=QizfHkZts5EYK347KE2FP1FK%2FAs%3D","platform-events-developer-guide-version-68-developer-guide",1793954888,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":19,"category_name":30,"create_tm":223},703158,"Salesforce Apex Design Patterns - Architecting Salesforce solutions with Apex design patterns","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013421203/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=natb2gG1HRWLxQT4iGB2QRMrDNk%3D","salesforce-apex-design-patterns-architecting-salesforce-solutions-with-apex-design-patterns",1794561732,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":81,"category_name":30,"create_tm":229},686288,"Sales Territories Implementation Guide - Version - Last updated July 22, 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000691928/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=mxuVfK3mzRnDDMrHzEM03ypINiM%3D","sales-territories-implementation-guide-version-last-updated-july-22-2026",1794035052,{"doc_id":231,"doc_title":232,"file_type":137,"home_preview_img_url":233,"slug":234,"view_count":235,"category_name":30,"create_tm":236},657022,"Salesforce Feedback Management Developer Guide - Version 68.0 - Winter ’27","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974810294/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=usGdkQRj%2FzAaZwEck%2FlTF2VoFIM%3D","salesforce-feedback-management-developer-guide-version-680-winter-27",16,1792972612,{"doc_id":238,"doc_title":239,"file_type":137,"home_preview_img_url":240,"slug":241,"view_count":19,"category_name":30,"create_tm":242},703154,"Record Logger Developer Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013421135/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110379&Signature=yxBAXSBqRJizoBRvCva6x5p5wPk%3D","record-logger-developer-guide",1794561726]