Show map marker for property location
This commit is contained in:
parent
8c495a048e
commit
9826f3fd70
3 changed files with 132 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue