Structured data is one of those tasks that directory developers either ignore entirely or overdo. On a static directory site built from a Google Maps export, it is easy to generate JSON-LD for every listing on every page, with ratings, hours and coordinates included. Some of that helps search engines and other tools understand your pages. Some of it conflicts with Google's guidelines.
This post walks through what is reasonable to mark up on the common directory page types and what to leave out. It is written for developers who build directory sites for themselves or for clients. More technical notes on AI search and directories are in these tech notes for directory builders .
Start from what the page actually shows
Google's general structured data guidelines say markup should describe content that is visible on the page. That rule settles most questions. If a city page lists twenty businesses with names and links, you can describe that list.…