Skip to content
HomePagesHomePages template kit

PoiPhoto

Photo metadata for one point of interest — dimensions and attribution, never image bytes.

Photo metadata for one point of interest — dimensions and attribution, never image bytes.

Import from @homepages/template-kit.

export type PoiPhoto = {
width: number;
height: number;
attribution: string;
url?: string;
responsive?: ResponsiveImage | null;
};
  • A PoiRow’s missing photo field is how a template knows the place has no photo at all. Only width/height/attribution are persisted; the display URL is minted at render time from the row’s place_id and delivered on the same object, so a renderer reads it without a cast.