Skip to content

Commit 5b2d6a0

Browse files
committed
return id and label for monument detail by id
1 parent 3aee6a0 commit 5b2d6a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/services/monument.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ async def get_monument_by_id(session: AsyncSession, monument_id: int):
124124
)
125125
SELECT
126126
ST_AsGeoJSON(m.wkb_geometry, 15)::jsonb AS geojson,
127+
COALESCE(m.street || ' ' || m.housenumber, m.street) AS label,
128+
m.id,
127129
m.object_id,
128130
m.slug,
129131
m.street,

0 commit comments

Comments
 (0)