Adding Location to Schema without Google API
-
I’m using WP ALL Import to bring in job data from another database. I am already importing city, state, zip, and country, so I just want to drop those values directly into the JSON object for the Google Jobs schema.
Currently it’s coming out like so:
“address”:”Grand Island, NE 68801 US”
How do I get it broken down properly like this instead?
“address”: {
“@type”: “PostalAddress”,
“streetAddress”: “y”,
“addressLocality”: “Grand Island”,
“addressRegion”: “NE”,
“postalCode”: “68801”,
“addressCountry”: “US”
}Is there a template file or function I can alter to directly populate the complete address? I do not want to pay for Google’s Maps API when I already have the necessary data for the schema requirements.
- The topic ‘Adding Location to Schema without Google API’ is closed to new replies.