diff --git a/project.mml b/project.mml index 0db4306..cd9902a 100644 --- a/project.mml +++ b/project.mml @@ -995,11 +995,10 @@ Layer: ( SELECT way, - CONCAT(SUBSTR( + RIGHT( COALESCE(tags->'icn_ref', tags->'ncn_ref', tags->'rcn_ref', tags->'lcn_ref'), - 0, 4 - ), '.') AS ref, + ) AS ref, CASE WHEN (tags->'icn_ref') IS NOT NULL THEN 'icn' WHEN (tags->'ncn_ref') IS NOT NULL THEN 'ncn'