{"id":7117,"date":"2026-01-13T10:15:51","date_gmt":"2026-01-13T17:15:51","guid":{"rendered":"https:\/\/support.spatialkey.com\/?p=7117"},"modified":"2026-02-11T16:52:04","modified_gmt":"2026-02-11T23:52:04","slug":"geocoding-apis","status":"publish","type":"post","link":"https:\/\/support.spatialkey.com\/geocoding-apis\/","title":{"rendered":"Geocoding APIs"},"content":{"rendered":"<p>The Geocoding API performs a lookup for a single location and returns:<\/p>\n<ul class=\"wp-block-list\">\n<li>Latitude<\/li>\n<li>Longitude<\/li>\n<li>Geo-accuracy score<\/li>\n<li>Your address in a standardized format<\/li>\n<\/ul>\n<p>Your location can be structured two ways:<\/p>\n<ol class=\"wp-block-list\">\n<li>A single combined field (e.g., 1600 Pennsylvania Avenue, Washington, DC 20500)<\/li>\n<li>Or broken up and structured by street, city, state, county, postal code, and country<\/li>\n<\/ol>\n<p>You are free to supply a subset of these fields (e.g., you can specify just street and state). However, the more info you provide, the more accurate the result.<\/p>\n<p>Note that in some cases (e.g., you enter city without street, state or country) the geocoder may return multiple results, each of which will be returned through the API.<\/p>\n<p><strong>Geocoding Credits: <\/strong>SpatialKey partners with Bing, which offer both domestic and international geocoding. They require credits to be purchased, and each geocode will deduct one credit. Ask your Account Rep for more info on purchasing geocoding credits.<\/p>\n<p><strong>Geocoding Cache:<\/strong> Geocodes are not cached when using the Geocoding API. The Import and Lookup APIs cache geocodes for one year to prevent duplicate charges.<\/p>\n<p><strong>TIP!<\/strong> The Lookup and Import APIs include geocoding as part of their calls already and do not need to be combined with this separate API call. Use the Geocoding API anywhere you give users a field for address entry, need to verify an address, and\/or convert to a lat\/long.<\/p>\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/support.spatialkey.com\/wp-content\/uploads\/2026\/01\/image-18.png\"><img loading=\"lazy\" decoding=\"async\" width=\"379\" height=\"182\" src=\"https:\/\/support.spatialkey.com\/wp-content\/uploads\/2026\/01\/image-18.png\" alt=\"Address input field with autocomplete suggestions showing multiple matching street addresses as the user types.\" class=\"wp-image-7119\" srcset=\"https:\/\/support.spatialkey.com\/wp-content\/uploads\/2026\/01\/image-18.png 379w, https:\/\/support.spatialkey.com\/wp-content\/uploads\/2026\/01\/image-18-300x144.png 300w, https:\/\/support.spatialkey.com\/wp-content\/uploads\/2026\/01\/image-18-60x29.png 60w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/a><\/figure>\n<div id=\"daexthefu-container\"\n\t\t\t\tclass=\"daexthefu-container daexthefu-layout-side-by-side daexthefu-alignment-left\"\n\t\t\t\tdata-post-id=\"7117\"><\/p>\n<div class=\"daexthefu-feedback\">\n<div class=\"daexthefu-text\">\n<h3 class=\"daexthefu-title\">Was this helpful?<\/h3>\n<\/p><\/div>\n<div class=\"daexthefu-buttons-container\">\n<div class=\"daexthefu-buttons\">\n<div class=\"daexthefu-yes daexthefu-button daexthefu-button-type-text\" data-value=\"1\">\n<div class=\"daexthefu-button-text\">Yes<\/div>\n<\/p><\/div>\n<div class=\"daexthefu-no daexthefu-button daexthefu-button-type-text\" data-value=\"0\">\n<div class=\"daexthefu-button-text\">No<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"daexthefu-comment\">\n<div class=\"daexthefu-comment-top-container\">\n\t\t\t\t\t\t<label id=\"daexthefu-comment-label\" class=\"daexthefu-comment-label\"><\/label><\/p>\n<div class=\"daexthefu-comment-character-counter-container\">\n<div id=\"daexthefu-comment-character-counter-number\"\n\t\t\t\t\t\t\t\t\tclass=\"daexthefu-comment-character-counter-number\"><\/div>\n<div class=\"daexthefu-comment-character-counter-text\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>\t\t\t\t\t<textarea id=\"daexthefu-comment-textarea\" class=\"daexthefu-comment-textarea\"\n\t\t\t\t\t\t\t\tplaceholder=\"Type your message\"\n\t\t\t\t\t\t\t\tmaxlength=\"\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea><\/p>\n<div class=\"daexthefu-comment-buttons-container\">\n\t\t\t\t\t\t<button class=\"daexthefu-comment-submit daexthefu-button\">Submit<\/button><br \/>\n\t\t\t\t\t\t<button class=\"daexthefu-comment-cancel daexthefu-button\">Cancel<\/button>\n\t\t\t\t\t<\/div>\n<\/p><\/div>\n<div class=\"daexthefu-successful-submission-text\">Thanks for your feedback!<\/div>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Geocoding API performs a lookup for a single location and returns: Your location can be structured two ways: You are free to supply a subset of these fields (e.g., you can specify just street and state). However, the more info you provide, the more accurate the result. Note that in some cases (e.g., you [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_helpful_status":1,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[69],"class_list":["post-7117","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-unlisted"],"_links":{"self":[{"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/posts\/7117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/comments?post=7117"}],"version-history":[{"count":5,"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/posts\/7117\/revisions"}],"predecessor-version":[{"id":8936,"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/posts\/7117\/revisions\/8936"}],"wp:attachment":[{"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/media?parent=7117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/categories?post=7117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.spatialkey.com\/wp-json\/wp\/v2\/tags?post=7117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}