{"id":1513868,"date":"2024-09-04T12:08:55","date_gmt":"2024-09-04T12:08:55","guid":{"rendered":"https:\/\/davidcarralon.com\/herramientas\/generador-de-esquemas\/localbusiness"},"modified":"2026-05-15T17:30:26","modified_gmt":"2026-05-15T17:30:26","slug":"localbusiness","status":"publish","type":"page","link":"https:\/\/davidcarralon.com\/es\/herramientas\/generador-de-esquemas\/localbusiness","title":{"rendered":"Local Business Schema"},"content":{"rendered":"\n<div class=\"jpsg-container\">\n\n    <h2>Local Business Schema Generator<\/h2>\n        <p>My Schema tool will generate compliant Json-LD structured data based \n        on your required field. Each field will generate an item property<\/p>\n        \n        <div class=\"jpsg-buttons\">\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/website\"> Website<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/organization\"> Organization<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/breadcrumbs\"> Breadcrumbs<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/article\"> Article<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/localbusiness\"> Local Business<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/product\"> Product<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/event\">Event<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/video\">Video<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/recipe\">Recipe<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/aggregaterating\">Aggregate Rating<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/jobposting\">Job Postings<\/a> <\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/FAQ\">FAQ<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/medicalschema\">Medical Schema<\/a><\/button>\n        <\/div>\n    <div class=\"row\">\n    <div class=\"column\" id=\"schema-output\">\n        <h3 id=\"generatedSchema\" style=\"display:none;\">Generated JSON-LD:<\/h3>\n        <h3 id=\"dataSample\">Structured data sample for \u2018Local Business\u2019 Schema <\/h3>\n\n        <pre class=\"textDavid\" id=\"textDavid\">\n{\n\t\"@context\": \"http:\/\/schema.org\",\n\t\"@type\": \"LocalBusiness\",\n\t\"name\": \"David Carralon\",\n\t\"url\": \"https:\/\/davidcarralon.com\/\",\n\t\"image\": \"https:\/\/davidcarralon.com\/wp-content\/uploads\/davidcarralon-logo-250-low-1.png\",\n\t\"description\": \"I\u2019m an independent SEO consultant with over 20 years of experience in SEO and digital marketing.\",\n\t\"address\": {\n\t\t\"@type\": \"PostalAddress\",\n\t\t\"streetAddress\": \"37 Rue Maurice\",\n\t\t\"addressLocality\": \"Ripoche\",\n\t\t\"addressRegion\": \"Paris\",\n\t\t\"postalCode\": \"75014\",\n\t\t\"addressCountry\": \"France\"\n\t},\n\t\"geo\": {\n\t\t\"@type\": \"GeoCoordinates\",\n\t\t\"latitude\": \"10.10110\",\n\t\t\"longitude\": \"121.1021\"\n\t},\n\t\"hasMap\": \"https:\/\/maps.app.goo.gl\/425wyKKSNEJtVhac9\",\n\t\"telephone\": \"+33 (0)6.33.58.80.43\",\n\t\"openingHoursSpecification\": [\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Monday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Tuesday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Wednesday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Thursday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Friday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t}\n\t]\n}\n<\/pre>  \n        <pre class=\"schemapre\" id=\"schema-json\"><\/pre>\n        <button id=\"copyButton\" style=\"display:none;\">Copy JSON-LD<\/button>\n        <button id=\"validateSchema\" style=\"display:none;\"><a href=\"https:\/\/search.google.com\/test\/rich-results\" rel=\"noopener\">Validate(Google)<\/a><\/button>\n<\/div>\n        <div class=\"column\">\n            <form id=\"schema-form\">\n                <div class=\"form-group\">\n                    <label for=\"lb-name\">Name:<\/label>\n                    <input type=\"text\" id=\"lb-name\" name=\"lbName\"  placeholder=\"Name\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-Url\">URL:<\/label>\n                    <input type=\"url\" id=\"lb-Url\" name=\"lbUrl\"  placeholder=\"URL\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-LURL\">Logo URL:<\/label>\n                    <input type=\"url\" id=\"lb-LURL\" name=\"lbLURL\" placeholder=\"Logo URL\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-ImURL\">Image URL:<\/label>\n                    <input type=\"url\" id=\"lb-ImURL\" name=\"lbImURL\" placeholder=\"Image URL\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-Description\">Description:<\/label>\n                    <input type=\"text\" id=\"lb-Description\" name=\"lbDescription\" placeholder=\"Description\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"lb-address\">Address:<\/label>\n                    <input type=\"text\" id=\"lb-address\" name=\"lbAddress\" placeholder=\"address\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-City\">City:<\/label>\n                    <input type=\"text\" id=\"lb-City\" name=\"lbCity\" placeholder=\"City\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-StateRegion\">State\/Region:<\/label>\n                    <input type=\"text\" id=\"lb-StateRegion\" name=\"lbStateRegion\" placeholder=\"State\/Region\" required>\n                <\/div>\n\n\n                <div class=\"form-group\">\n                    <label for=\"lb-Postal\">Zip\/Postal Code:<\/label>\n                    <input type=\"text\" id=\"lb-Postal\" name=\"lbPostal\" placeholder=\"Calories\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-Country\">Country:<\/label>\n                    <input type=\"text\" id=\"lb-Country\" name=\"lbCountry\" placeholder=\"Country\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-Lat\">Latitude:<\/label>\n                    <input type=\"text\" id=\"lb-Lat\" name=\"lbLat\" placeholder=\"Latitude\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-Long\">Longitude:<\/label>\n                    <input type=\"text\" id=\"lb-Long\" name=\"lbLong\" placeholder=\"Longitude\" required>\n                <\/div>\n            \n\n                <div class=\"form-group\">\n                    <label for=\"lb-Map\">Include a Map:<\/label>\n                    <input type=\"text\" id=\"lb-Map\" name=\"lbMap\" placeholder=\"Include a Map\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-telephone\">Telephone:<\/label>\n                    <input type=\"text\" id=\"lb-telephone\" name=\"lbtelephone\" placeholder=\"Telephone\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"lb-business\">Business Hours:<\/label>\n                    <input type=\"text\" id=\"lb-business\" name=\"lbbusiness\" placeholder=\"Business Hours\" required>\n                        <form>\n                            <div class=\"business-hours\">\n                                <label for=\"monday\">Mon:<\/label>\n                                <input type=\"checkbox\" id=\"monday-checkbox\">\n                                <input type=\"time\" id=\"monday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"monday-end\" disabled>\n                            <\/div>\n                            <div class=\"business-hours\">\n                                <label for=\"tuesday\">Tue:<\/label>\n                                <input type=\"checkbox\" id=\"tuesday-checkbox\">\n                                <input type=\"time\" id=\"tuesday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"tuesday-end\" disabled>\n                            <\/div>\n                            <div class=\"business-hours\">\n                                <label for=\"wednesday\">Wed:<\/label>\n                                <input type=\"checkbox\" id=\"wednesday-checkbox\">\n                                <input type=\"time\" id=\"wednesday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"wednesday-end\" disabled>\n                            <\/div>\n                            <div class=\"business-hours\">\n                                <label for=\"thursday\">Thu:<\/label>\n                                <input type=\"checkbox\" id=\"thursday-checkbox\">\n                                <input type=\"time\" id=\"thursday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"thursday-end\" disabled>\n                            <\/div>\n                            <div class=\"business-hours\">\n                                <label for=\"friday\">Fri:<\/label>\n                                <input type=\"checkbox\" id=\"friday-checkbox\">\n                                <input type=\"time\" id=\"friday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"friday-end\" disabled>\n                            <\/div>\n                            <div class=\"business-hours\">\n                                <label for=\"saturday\">Sat:<\/label>\n                                <input type=\"checkbox\" id=\"saturday-checkbox\">\n                                <input type=\"time\" id=\"saturday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"saturday-end\" disabled>\n                            <\/div>\n                            <div class=\"business-hours\">\n                                <label for=\"sunday\">Sun:<\/label>\n                                <input type=\"checkbox\" id=\"sunday-checkbox\">\n                                <input type=\"time\" id=\"sunday-start\" disabled>\n                                <span>to<\/span>\n                                <input type=\"time\" id=\"sunday-end\" disabled>\n                            <\/div>\n                    <\/form>\n                <\/div>\n\n                <!-- Add more fields as necessary -->\n                <div class=\"form-group\">\n                <button type=\"button\" onclick=\"generateSchema()\">Generate Schema<\/button>\n                <button type=\"reset\" id=\"reset\">Clear all<\/button>\n                <\/div>\n            <\/form>\n        <\/div>\n\n<\/div>\n\n <script>\n        function generateSchema() {\n\n            var lbname = document.getElementById('lb-name').value;\n            var lbUrl = document.getElementById('lb-Url').value;\n            var lbLURL = document.getElementById('lb-LURL').value;\n            var lbImURL = document.getElementById('lb-ImURL').value;\n            var lbDescription = document.getElementById('lb-Description').value;\n            var lbaddress = document.getElementById('lb-address').value;\n            var lbCity = document.getElementById('lb-City').value;\n            var lbStateRegion = document.getElementById('lb-StateRegion').value;\n            var lbPostal = document.getElementById('lb-Postal').value;\n            var lbCountry = document.getElementById('lb-Countryl').value;\n            var lbLat = document.getElementById('lb-Lat').value;\n            var lbLong = document.getElementById('lb-Long').value;\n            var lbMap = document.getElementById('lb-Map').value;\n            var lbtelephone = document.getElementById('lb-telephone').value;\n            var lbbusiness = document.getElementById('lb-business').value;\n\n\n        \n\n\n\n            var schema = {\n\n\t\"@context\": \"http:\/\/schema.org\",\n\t\"@type\": \"LocalBusiness\",\n\t\"name\": lbname ,\n\t\"url\": lbUrl ,\n\t\"image\": lbLURL ,\n\t\"description\": lbDescription ,\n\t\"address\": {\n\t\t\"@type\": \"PostalAddress\",\n\t\t\"streetAddress\": lbaddress ,\n\t\t\"addressLocality\": lbCity ,\n\t\t\"addressRegion\": lbStateRegion ,\n\t\t\"postalCode\": lbPostal ,\n\t\t\"addressCountry\": lbCountry\n\t},\n\t\"geo\": {\n\t\t\"@type\": \"GeoCoordinates\",\n\t\t\"latitude\": lbLat ,\n\t\t\"longitude\": lbLong \n\t},\n\t\"hasMap\": lbMap ,\n\t\"telephone\": lbtelephone ,\n\t\"openingHoursSpecification\": [\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Monday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Tuesday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Wednesday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Thursday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"OpeningHoursSpecification\",\n\t\t\t\"dayOfWeek\": \"Friday\",\n\t\t\t\"opens\": \"08:00\",\n\t\t\t\"closes\": \"17:00\"\n\t\t}\n\t]\n\n             \n         };     \n                 \n\n            document.getElementById('schema-json').textContent = JSON.stringify(schema, null, 2);\n            document.getElementById('generatedSchema').style.display = 'inline-block';\n            document.getElementById('copyButton').style.display = 'inline-block';\n            document.getElementById('validateSchema').style.display = 'inline-block';\n            document.getElementById('dataSample').style.display = 'none';\n            document.getElementById('textDavid').style.display = 'none';\n        }\n<\/script>\n\n<script>\n        \/\/ Enable\/Disable time inputs based on checkbox state\n        document.querySelectorAll('input[type=\"checkbox\"]').forEach(checkbox => {\n            checkbox.addEventListener('change', function () {\n                const timeInputs = this.parentElement.querySelectorAll('input[type=\"time\"]');\n                timeInputs.forEach(input => input.disabled = !this.checked);\n            });\n        });\n<\/script>\n\n<script>\n    document.getElementById('copyButton').addEventListener('click', function() {\n        \/\/ Get the text from the generated JSON-LD area\n        const jsonLdText = document.querySelector('#schema-json').innerText;\n\n        \/\/ Create a temporary textarea element to hold the text\n        const tempTextArea = document.createElement('textarea');\n        tempTextArea.value = jsonLdText;\n        document.body.appendChild(tempTextArea);\n\n        \/\/ Select the text and copy it to the clipboard\n        tempTextArea.select();\n        document.execCommand('copy');\n\n        \/\/ Remove the temporary textarea\n        document.body.removeChild(tempTextArea);\n\n        \/\/ Optional: Alert the user that the text has been copied\n        alert('JSON-LD copied to clipboard!');\n    });\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1464102,"parent":1513789,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"1":"page","2":"type-page","6":"entry"},"featured_image_src":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Local-Business-1-600x400.png","acf":[],"featured_image_src_square":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Local-Business-1-600x600.png","_links":{"self":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/comments?post=1513868"}],"version-history":[{"count":1,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513868\/revisions"}],"predecessor-version":[{"id":1513869,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513868\/revisions\/1513869"}],"up":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/media\/1464102"}],"wp:attachment":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/media?parent=1513868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}