You are not logged in.

Announcement

*** NOTICE: By 30th of September 2022 the forum.openstreetmap.org will be retired, please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators. We expect the migration of data will be finished by that date, you can follow its progress here.***

#1 2012-07-04 21:10:52

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,110

What makes houses and streets belong to towns in Finland?

Hi All,
Could you please help me?

I am converting OSM data to the format of CityGuide, popular navigation software in Russia.

OSM map of Finland is quite popular among CityGuide users, especialy in Saint Petersburg as people from Saint Petersburg frequently visit Finland.

But there is a problem - address search does not work, because I do not understand what makes houses and streets belong to towns in Finland? .

In Russia we use the following scheme - city is marked in OSM simultaneously in two ways - as a node, with tags place=city|town+name=*, and as a polygon with the same tags. Thus, if a house or a street is within this polygon, I can determine that they belong to the city and compose a full address (for example: Moscow (from the city polygon), Tverskay street, 13 (from addr:street and addr housenumber on the house).

As I see,  full Karlsruhe scheme is not used in Finland as well.  E.g. on this house only addr:street and addr:housenumber are present, no addr:city.

Also, what is general structure of address in Finland? In Russia it's <Region Name> <City Name> <Street Name> <House number>.


P.S.
Sorry that I use English, I do not know Finnish at all.


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#2 2012-07-05 06:32:45

Zer
Member
Registered: 2011-08-25
Posts: 17

Re: What makes houses and streets belong to towns in Finland?

Hi,
some quick notes...
The Karlsruhe schema is used in full by some editors. For example: http://www.openstreetmap.org/browse/way/122119223 (added by me)

I think there is supposed be only uniquely-named roads in a single municipality in Finland. So there should be only one Yliopistonkatu in Jyväskylä but in other municipalities there there are streets with a similar name (for example in Helsinki). Municipalities are supposed to be marked by closed polygons. Unfortunately, not all municicpalities are yet included in OSM. (And it might be computitionally expensive to place roads in their respective municipalities.)

If you're going to find the actual address for a road it's more complicated because, for example, inside the municipality of Jyväskylä there are several "places" like Korpilahti, Vaajakoski and Jyskä which are used in addresses. These can be found reliably via OSM only when someone has added the post code to every house (I think the actual "post area" database costs money and is proprietary).

So if your user searches for Väinöläntie, there should be only one result which is in Jyväskylä, and it's more exactly in Jyskä (with post code 40420 Jyskä)

The address system is like this:
Street name House number (Entrance number Flat number)
Post code Post code area

Example:
recipient
Kauppakatu 2 A 19
40100 Jyväskylä

Offline

#3 2012-07-05 16:04:31

JRA
Member
Registered: 2007-12-17
Posts: 677

Re: What makes houses and streets belong to towns in Finland?

Hi,

There is another free address database available at http://latuviitta.org/documents/mtk_osoitteet_2012.zip (Spatialite database) and http://latuviitta.org/documents/mtk_oso … pefile.zip (shapefile)
Data are from the National Land Survey of Finland and they are under attribution license.  Link to license should be included in the zip files. Report about how the dataset was processed is at http://latuviitta.org/documents/Maastot … unotto.pdf
Document is in Finnish but it has lots of screenshots and SQL so perhaps you will understand the essentials.  Feel free to ask for translation.

The Spatialite database comes with Finnish municipality polygons. If you do not want to use the address points from NLS you can still use the municipality polygons together with OSM address points and join the municipality names with address points by adapting the spatial join SQL that is presented in the document (ST_Contains).

Last edited by JRA (2012-07-05 16:06:07)

Offline

#4 2012-07-06 11:48:28

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,110

Re: What makes houses and streets belong to towns in Finland?

Zer, JRA

Thanks for you replies.

Municipalities are supposed to be marked by closed polygons.

With what tags exaсtly? boundary=administrative+admin_level=??

inside the municipality of Jyväskylä there are several "places" like Korpilahti, Vaajakoski and Jyskä

Do these places have official borders, or they are just historic names?


Other questions may follow smile

Last edited by Zkir (2012-07-06 11:56:32)


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#5 2012-07-06 12:01:05

Pikari
Member
Registered: 2010-03-20
Posts: 181

Re: What makes houses and streets belong to towns in Finland?

admin_level=8. Here is an example: Руоколахти (fi: Ruokolahti and sv: Ruokolax). There is still some work to do, since that multipolygon is not yet closed.

Zkir wrote:

inside the municipality of Jyväskylä there are several "places" like Korpilahti, Vaajakoski and Jyskä

Do these places have official borders, or they are just historic names?

Korpilahti is a former municipality. Vaajakoski and Jyskä were "villages" in the former municipality "Rural municipality of Jyväskylä" (fi: Jyväskylän maalaiskunta). Those former municipalities merged with city of Jyväskylä into the "new" city of Jyväskylä on 2009-01-01. So Korpilahti, Vaajakoski and Jyskä are now villages of the "new" Jyväskylä. Or to be exact, "kaupunginosa" (city area) of Jyväskylä. And they have got borders (admin_level= 10). There are 86 city areas in Jyväskylä, #01-38 covering the "old" Jyväskyä, #41-58 & 60-79 covering the former Rural muni of Jyväskylä and #80-89 the former muni of Korpilahti.

As I understand, the former administrative village of Korpilahti has been split into city areas #80-85. Jyskä is #66 and Vaajakoski #69

Looking even closer, there are sub areas (fi: pienalue) within those city areas. Jyskä is divided into the sub areas Tammirinne and Jyskä. The latter covers also a part of the neighbouring city area Vaajakoski. So the borders (admin_level=11?) of the sub areas are not always totally within the borders of the concerning city area.

Here is an incomplete list of municipalities (Finland:Kunnanrajat), that has got a multipolygon border relation (admin_level=8). Names in bold = the multipolygon is closed.

Last edited by Pikari (2012-07-06 12:53:19)


Pum pum, läpä läpä

Offline

#6 2012-07-09 19:52:55

alv
Member
Registered: 2008-06-03
Posts: 196

Re: What makes houses and streets belong to towns in Finland?

Zkir wrote:

As I see,  full Karlsruhe scheme is not used in Finland as well.  E.g. on this house only addr:street and addr:housenumber are present, no addr:city.

The most active mappers feel that street and housenumber (and postal code, if somebody local knows it) should be enough on a building, once somebody draws the municipality borders as ways and relations. Hopefully, we'll have them soon (soon = the licence was believed to be clear on 1st May 2012, but...) from the national mapping agency. Most mappers haven't bothered with the house numbers at all. It's just missing data and missing mappers.

Zkir wrote:

Also, what is general structure of address in Finland? In Russia it's <Region Name> <City Name> <Street Name> <House number>.

Generally, we write addresses as
<Street Name> <House number> (<entrance> <flat number> where available) (newline)
<postal code> <City Name>
(<Region Name> not really used, but last, if written)

(And, in fact, above <City Name> can be "postal area name", often a former municipality or just a smaller part of one. But even the current municipality is used in real life.)

Offline

#7 2012-07-09 20:16:31

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,110

Re: What makes houses and streets belong to towns in Finland?

// It's just missing data and missing mappers.
Collect house numbers is very hard work. smile

Well, another question, not related directly to postal addresses.  How should I assign speedlimit for roads in Finland?

In Russia we distinguish between streets (inside cities/villages) and  roads (outside cities/villages), from the point of view of the traffic regulation.

For the streets speed limit is 60 kmph, and for roads speed limit is 90 kmph.  For conversion purposes, I check if  a highway is inside place polygon.


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#8 2012-07-09 23:49:04

Pikari
Member
Registered: 2010-03-20
Posts: 181

Re: What makes houses and streets belong to towns in Finland?

alv wrote:

Generally, we write addresses as
<Street Name> <House number> (<entrance> <flat number> where available) (newline)
<postal code> <City Name>
(<Region Name> not really used, but last, if written)

(And, in fact, above <City Name> can be "postal area name", often a former municipality or just a smaller part of one. But even the current municipality is used in real life.)

In some cases an address might carry an "extra" letter, such as Mannerheimintie 4a B 10 vs .Mannerheimintie 4b B 10. The house number 4a resp. 4b distinguishes two separate neighbouring houses.

Sometimes, when a house of flats does have just one entrance, the adress might look like Mannerheimintie 5 as. 10. In this case as. is short for asunto (flat) and means house number 5, flat 10.

The addresses of terraced houses or dual family houses might look like Mannerheimintie 6A, Mannerheimintie 6B, Mannerheimintie 6C - where A, B resp. C stands for an appartment entrance.

Zkir wrote:

Well, another question, not related directly to postal addresses.  How should I assign speedlimit for roads in Finland?

In Russia we distinguish between streets (inside cities/villages) and  roads (outside cities/villages), from the point of view of the traffic regulation.

For the streets speed limit is 60 kmph, and for roads speed limit is 90 kmph.  For conversion purposes, I check if  a highway is inside place polygon.

In Finland the concerning limits are usually 50 km/h resp. 80 km/h. Trunk/primary and sometimes even secondary roads 100 km/h and motorways 120 km/h. But in populated areas the speed limit might drop down to 30 or 40 km/h (on residential streets). And roads with an 80-limit might in wintertime get a speed limit of 70 km/h, as well as motorways down from 120 to 100 km/h.

Last edited by Pikari (2012-07-09 23:57:00)


Pum pum, läpä läpä

Offline

#9 2012-07-10 07:33:08

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,110

Re: What makes houses and streets belong to towns in Finland?

But in populated areas the speed limit might drop down to 30 or 40 km/h (on residential streets).

How should I define which areas are populated from osm data? smile


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#10 2012-07-10 21:19:54

alv
Member
Registered: 2008-06-03
Posts: 196

Re: What makes houses and streets belong to towns in Finland?

You can hope that all the buildings from the national mapping agency data get imported, and then you calculate buffer zones for every building, and turn those into suitable polygons where the buffers overlap enough smile I don't remember the exact distances for that. That's the only definitive way I've read, on how to define them not-from-street-signs. Even that would give holes, which are not "outside" in reality. Other than that, it's hard to get it right.

Only recently there has been some coordinated effort to collect these highway=city_limit signs. The only other way to be sure is maxspeed=50 + source:maxspeed=FI:urban, if somebody has bothered to tag it. Maxspeed=50 without the condition "inside populated place" is very rare on major highways. Small rural roads (tertiary and below) can have a 50 limit because of the curves and such, even outside populated places. I'd hope that most, if not all, primary highways have the lower speed limit sections tagged appropriately by now.

It would be hard to draw the populated areas as separate polygons, mostly because often the major highways penetrate deep into the populated area, but are not "inside populated area" themselves.

Other than that, you might get a good guess from "a place=city/town node is near and road is secondary or lower". My wild guess is that most place=village 's are not "inside a populated area" with regards to the traffic rules - but at least some are (for example "Veikkola"). In the first sentence, "near" being roughly a radius of 2 km.

Let us know if you have a nice overlay with your guesses smile

Offline

#11 2012-07-13 14:53:20

Caballista
Member
Registered: 2009-05-13
Posts: 38

Re: What makes houses and streets belong to towns in Finland?

The speed limits are in Finland defined with "maxspeed" ( http://wiki.openstreetmap.org/wiki/Key:maxspeed). The special thing in Finland is that we have different speed limit in summer (~from April to October) and winter. Those are usually defined with "maxspeed:seasonal:summer" and "maxspeed:seasonal:winter" tags. Sample: http://www.openstreetmap.org/browse/way … 57/history. There is also few with maxspeed:summer / maxspeed:winter.

I did spend some time and create (bad) map about speed limits in Finland (situation 11.07.2012 / will not update): http://www.latukartta.fi/maxspeed/highway.html. The actual motivation was to make visual speed limits in my area - it's easier to update stuff when you know what has being done. There is
for : maxspeed=120 define line-color : blue
elsefor : maxspeed=100 define line-color : red
elsefor : maxspeed=80 define line-color : yellow
elsefor : maxspeed=70 define line-color : black
elsefor : maxspeed=60 define line-color : green
elsefor : maxspeed=50 define line-color : purple
elsefor : maxspeed=40 define line-color : black
elsefor : maxspeed=30 define line-color : brown

Offline

#12 2012-07-19 09:31:47

ij_
Member
Registered: 2011-11-22
Posts: 161

Re: What makes houses and streets belong to towns in Finland?

Please also note that buildings can have multiple addresses in Finland (one for each adjacent street). These are mapped as nodes within building outline, each having one address.

Entrances (A, B, C, ...) should be slowly removed from addr:housenumber and replaced with ref+entrance=staircase / entrance=home / entrance=x node that indicates the actual door position but whether that's easy / possible to do with a reasonable accuracy on a particular area depends on quality of imagery. Sadly, in some recently built houses also entrances have started to use small letter for entrances in Helsinki (I think this is against some guidelines tough which tell you how they should be marked).

--
i.

Offline

#13 2012-10-12 07:26:24

KonTur
Member
From: SPB
Registered: 2010-03-10
Posts: 1,649

Re: What makes houses and streets belong to towns in Finland?

Hi There!
I read this topic carefully, but still has question. Does the new municipalities (admin_level=8) means the city? I was last week in Kouvola and found that it covers a very large area (http://www.visitkouvola.fi/en/index/kouvolatanaan.html), and everything inside this area is in "City of Kouvola", even the National Park Repovesi (40 km from the centre of Kouvola).

alv wrote:

somebody draws the municipality borders as ways and relations. Hopefully, we'll have them soon (soon = the licence was believed to be clear on 1st May 2012, but...) from the national mapping agency.

Could you please inform me, is the licence is cleared already or not yet?
If it is cleared - where can i get it?
Thank you in advance.

Offline

#14 2012-10-12 09:56:43

Pikari
Member
Registered: 2010-03-20
Posts: 181

Re: What makes houses and streets belong to towns in Finland?

KonTur wrote:

I read this topic carefully, but still has question. Does the new municipalities (admin_level=8) means the city? I was last week in Kouvola and found that it covers a very large area (http://www.visitkouvola.fi/en/index/kouvolatanaan.html), and everything inside this area is in "City of Kouvola", even the National Park Repovesi (40 km from the centre of Kouvola).

Officially, there are no cities in Finland, only municipalities. Cities were often founded by the crown and later, when Finland got independent, the state now and then granted the status of being a city. In 1995 cities were "abolished". After that a municipality could declare itself a city, so nowadays one third of all municipalites are cities.

Kouvola was until 2008 a small city. In 2009 it ceased to exist together with five other cities/municipalities (Anjalankoski, Elimäki, Jaala, Kuusankoski & Valkeala) and these merged into the new city (municipality) of Kouvola. The area of "new" Kouvola is now 64 times larger than the area of the old one. The boundary of "new" Kouvola should be tagged with admin_level=8 and the boundaries of those former municipalites with admin_level=9. Borders of villages/suburbs within a municipality are tagged with admin_level=10. Admin_level=9 or 10 borders are hard to get, since they are not shown on the map of National Land Survey of Finland.


Pum pum, läpä läpä

Offline

#15 2012-10-12 11:07:30

KonTur
Member
From: SPB
Registered: 2010-03-10
Posts: 1,649

Re: What makes houses and streets belong to towns in Finland?

Pikari wrote:

boundary of "new" Kouvola should be tagged with admin_level=8

Thank you for quick reply.
Can I add place=town to the relation of "new" Kuovola to fix the problem with address search in our navigation software?
The problem is described in first message.
Now everything is clear, thanks.

Last edited by KonTur (2012-10-12 12:05:22)

Offline

#16 2012-10-13 20:38:29

ij_
Member
Registered: 2011-11-22
Posts: 161

Re: What makes houses and streets belong to towns in Finland?

There is also lots of other merging recently and in the future too, so expect "cities" to enlarge in Finland (on national politics level current rulers would want to significantly reduce the number of municipalities while municipality level politics tend to mostly oppose such plans so it's hard to tell how things end up and on what schedule).

--
i.

Last edited by ij_ (2012-10-13 20:40:19)

Offline

#17 2012-10-15 06:51:59

KonTur
Member
From: SPB
Registered: 2010-03-10
Posts: 1,649

Re: What makes houses and streets belong to towns in Finland?

Pikari wrote:

Here is an incomplete list of municipalities (Finland:Kunnanrajat), that has got a multipolygon border relation (admin_level=8). Names in bold = the multipolygon is closed.

Do this list is updated automatically or you update it manually? from time to time?

Another question:
Here http://www.maanmittauslaitos.fi/aineist … apinta-wms I found some data with municipalities borders.
Can smbd help me with translation (google translater couldn't smile ) - is this data is free? Can I use it in OSM? How can I connect this WMS in JOSM?

Thanks in advance

Last edited by KonTur (2012-10-15 07:04:50)

Offline

#18 2012-10-15 08:04:59

Pikari
Member
Registered: 2010-03-20
Posts: 181

Re: What makes houses and streets belong to towns in Finland?

KonTur wrote:
Pikari wrote:

list of municipalities (Finland:Kunnanrajat)

Do this list is updated automatically or you update it manually? from time to time?

Updated mostly by me, since the OSM wikipages aren't automatically updating themselves.

Yesterday I noticed that Potlach 1 is no longer in use. I used it to search for a specific relation (using a relevant name), since the search function (of relations) in Potlach 2 is still hardly usable. In P2 you have to know the correct id of a relation. Using google search "name + site:openstreetmap.org" isn't that a handy replacement for the searching function of P1. Maybe there's a better relation searching tool that I have missed?

Edit: Yesterday I also noticed that a couple of users have entered the border of the former municipality of Anjalankoski. They didn't use a relation, but only ways to mark this level 9 border. I think the southern and eastern sections of that border are not correct.

Last edited by Pikari (2012-10-15 08:21:57)


Pum pum, läpä läpä

Offline

#19 2012-10-15 09:22:29

skela
Member
Registered: 2009-01-25
Posts: 407

Re: What makes houses and streets belong to towns in Finland?

Pikari wrote:

Maybe there's a better relation searching tool that I have missed?

I am not sure if it is better, but it could be more flexible. Download finland.osm.pbf from http://download.geofabrik.de/openstreetmap/europe/ and use Osmosis or some other tool to extract what you need, and then load the result into JOSM and use its search. I would try something like this:

osmosis --rb finland.osm.pbf --tf accept-relations boundary=administrative --used-way --used-node --wx finland-boundary-relations.osm
osmosis --rb finland.osm.pbf --tf reject-relations --tf accept-ways boundary=administrative --used-node --wx finland-boundary-ways.osm
josm finland-boundary-relations.osm finland-boundary-ways.osm

They didn't use a relation, but only ways to mark this level 9 border.

This should be shown in the above file finland-boundary-ways.osm.

Offline

#20 2012-10-15 09:51:00

HACY
Member
Registered: 2011-01-31
Posts: 161

Re: What makes houses and streets belong to towns in Finland?

Pikari wrote:

... Yesterday I noticed that Potlach 1 is no longer in use...

I can still access Potlatch 1 by clicking "Edit". I have set it as default editor in my preferences, but I'm not sure if this trick works for a long time, though.

Last edited by HACY (2012-10-15 09:51:12)

Offline

#21 2012-10-15 10:01:49

HACY
Member
Registered: 2011-01-31
Posts: 161

Re: What makes houses and streets belong to towns in Finland?

KonTur wrote:

... Another question:
Here http://www.maanmittauslaitos.fi/aineist … apinta-wms I found some data with municipalities borders.
Can smbd help me with translation (google translater couldn't smile ) - is this data is free? ...

I believe NLS themselves should do the translation:
http://www.maanmittauslaitos.fi/en/opendata
http://www.maanmittauslaitos.fi/en/NLS_ … 1_20120501

It is "open" but there are some restrictions in 2.2
* mention the name of the Licensor, the name of the dataset(s) and the time when the National Land Survey has delivered the dataset(s)
and
* require third parties to provide the same information when granting rights to copies of dataset(s) or products and services containing such data

These two are restricting the use of data in OSM unless some actions are agreed with NLS and also committed. There has been some discussion about how to tackle these two, though.

  .

Offline

#22 2012-10-15 11:21:45

KonTur
Member
From: SPB
Registered: 2010-03-10
Posts: 1,649

Re: What makes houses and streets belong to towns in Finland?

HACY
Thanks. I am not so good in official english, so I asked for reading in original (finnish) for more clear understanding.
Hence, adding tag source=NLS is not sufficient? It's a pity...

Pikari
What is the source=MML 2012? Where I can get it for drawing municipalities borders?

Offline

#23 2012-10-15 13:24:05

Pikari
Member
Registered: 2010-03-20
Posts: 181

Re: What makes houses and streets belong to towns in Finland?

HACY wrote:

I can still access Potlatch 1 by clicking "Edit". I have set it as default editor in my preferences, but I'm not sure if this trick works for a long time, though.

I changed the default into P1 with no result. There's no option for P1 in the edit menu. (Yes, I tried - even after closing and restarting my browser).

Edit: Ah, now it seems to work. I just chose edit and the P1 started "itself".

KonTur wrote:

What is the source=MML 2012? Where I can get it for drawing municipalities borders?

Maanmittauslaitos = National Land Survey of Finland. Somehow not up-to-date background map images are here http://tiles.kartat.kapsi.fi/peruskartta/$z/$x/$y.jpg. By somehow I mean that the mapsite of MML (Kansalaisen karttapaikka) is a bit more up-to-date than the maptiles that are hosted in kapsi.fi (I've seen updates in karttapaikka that are not shown on the kapsi maptiles).

Last edited by Pikari (2012-10-15 14:30:24)


Pum pum, läpä läpä

Offline

#24 2012-10-15 16:39:01

KonTur
Member
From: SPB
Registered: 2010-03-10
Posts: 1,649

Re: What makes houses and streets belong to towns in Finland?

Pikari wrote:

Somehow not up-to-date background map images are here http://tiles.kartat.kapsi.fi/peruskartta/$z/$x/$y.jpg.

How can I use it?
In browser I've got

An error occurred: invalid literal for int() with base 10: '$z'
  File "/tilerender/mml/render/env/lib/python2.6/site-packages/TileCache-2.11-py2.6.egg/TileCache/Service.py", line 303, in wsgiHandler
    format, image = service.dispatchRequest( fields, path_info, req_method, host )
  File "/tilerender/mml/render/env/lib/python2.6/site-packages/TileCache-2.11-py2.6.egg/TileCache/Service.py", line 201, in dispatchRequest
    tile = TMS(self).parse(params, path_info, host)
  File "/tilerender/mml/render/env/lib/python2.6/site-packages/TileCache-2.11-py2.6.egg/TileCache/Services/TMS.py", line 23, in parse
    res = layer.resolutions[int(parts[2])]

or this is for JOSM?

Offline

#25 2012-10-15 16:44:19

JRA
Member
Registered: 2007-12-17
Posts: 677

Re: What makes houses and streets belong to towns in Finland?

This file should contain all the municipality borders in OSM format.
http://latuviitta.org/documents/kunnat.osm

Offline

Board footer

Powered by FluxBB