Show map marker for property location

This commit is contained in:
Eli Ribble 2026-03-03 23:42:24 +00:00
parent 8c495a048e
commit 9826f3fd70
No known key found for this signature in database
3 changed files with 132 additions and 2 deletions

View file

@ -20,6 +20,7 @@ import (
type address struct {
Country string `db:"country"`
Locality string `db:"locality"`
LocationGeoJSON string `db:"location_geo_json"`
Number int32 `db:"number_"`
OrganizationSlug string `db:"slug"`
PostalCode string `db:"postal_code"`
@ -53,6 +54,7 @@ func getMailer(ctx context.Context, r *http.Request) (*html.Response[contentMail
"address.number_",
"address.street",
"address.locality",
"ST_AsGeoJSON(address.geom) AS location_geo_json",
"address.region",
"address.postal_code",
"address.country",