Stream: general

Topic: Post box validator


view this post on Zulip Michael Validator (May 01 2023 at 16:05):

Hi Latvian community! A few weeKs ago I developed tool to validate post boxes on openstreetmap for one country (Belarus). It compares data on openstreetmap.org and public post service website and build web page with map where all post boxes are marKed in different colors depend on how full post box is described in OSM. I found that Latvias Pasts provide info about post boxes. I am interested to implement the same validator for Latvia. You could see as it worKs here If somebody agree to support this tool then please provide set of tags for amenity=post_box that you would accept as fully described post box on OSM map. Example for belarus

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip Michael Validator (May 01 2023 at 16:05):

amenity=post_box
collection_times=Mo 15:15; Tu-Fr 15:15; Sa 15:45
mapillary=102590672831658
operator=Белпошта
operator:be=Белпошта
operator:en=Belposhta
operator:ru=Белпочта
operator:wikidata=Q2662336
post_box:type=lamp
ref=19-497
ref:belpost=5991
support=pole

view this post on Zulip Michael Validator (May 01 2023 at 17:20):

Now there are 205 of 450 boxes on the map. But most of its don't have a ref nor an operator nor collection_times.

view this post on Zulip HellMap (May 01 2023 at 17:21):

That sounds like a great idea. But someone else might chime in, because I'm not sure that the data from Latvijas Pasts is open data and compatible with OSM licensing. I cannot find any mention of licensing and it's not part of government open data repository https://data.gov.lv

view this post on Zulip Michael Validator (May 01 2023 at 17:34):

I see. Could you please start to identify list of tags and values for post box of Latvijas Pasts? It is not create any legal issue. You Just need to define the operator name (I guess Latvijas Pasts). Do you need operator:en or others languages. Do you want to have operator:wiKidata=Q1807088. BTW why can't I use letters lower case K and J here in the chat?

view this post on Zulip HellMap (May 01 2023 at 17:35):

Yeah, we can definitely add operator and its wikidata and may be :ru and :en names. There's probably an example somewhere, I might take a look later.

view this post on Zulip HellMap (May 01 2023 at 17:37):

I have no idea about k and j... that sounds very weird.

view this post on Zulip i-ky (May 02 2023 at 07:46):

Michael Validator said:

BTW why can't I use letters lower case K and J here in the chat?

I'd suggest taking this question to #Zulip channel.

view this post on Zulip i-ky (May 02 2023 at 08:46):

Michael Validator said:

Could you please start to identify list of tags and values for post box of Latvijas Pasts?

I guess we should keep them in sync with Name Suggestion Index:
https://nsi.guide/index.html?t=operators&k=amenity&v=post_box&tt=Latvijas%20Pasts
https://nsi.guide/index.html?t=operators&k=amenity&v=post_office&tt=Latvijas%20Pasts
By the way, NSI provides Overpass queries that colorize mapped entities with tags not to spec.

view this post on Zulip i-ky (May 02 2023 at 08:54):

HellMap said:

I'm not sure that the data from Latvijas Pasts is open data and compatible with OSM licensing.

Licensing is one question and data accuracy is another one. If Latvijas Pasts data are compatible with OSM licence and accurate enough, I guess we would consider an automatic solution to synchronize Latvijas Pasts data with OSM (like the address bot we already have) instead of a validator website that requires a lot of manual work.

Collection of scripts to update and maintain OpenStreetMap data in Latvia (currently only addresses). See https://wiki.openstreetmap.org/wiki/Automated_edits/Latvia-bot. - GitHub - Davis-Klavins/os...

view this post on Zulip i-ky (May 02 2023 at 08:58):

Also StreetComplete has "What are the pickup times of this collection box?" and "What’s the identification number here?" quests regadring amenity=post_box.

view this post on Zulip Michael Validator (May 02 2023 at 13:50):

Meanwhile I published map with current post box state. It can help to realize current state and estimate coordinate precision on official site.
https://mapillaryby.github.io/PostboxValidator/latvia_index.html
It will be great if somebody could provide translation to your native language otherwise I will use google translate.

view this post on Zulip HellMap (May 02 2023 at 13:57):

I think you can just use English, no need for Latvian for these. And I guess many speak Russian too if you don't translate.

view this post on Zulip Michael Validator (May 02 2023 at 13:58):

There is example when long distance between coordinates on site and on OSM
image.png

view this post on Zulip HellMap (May 02 2023 at 13:59):

You have a small error here:
"Рекомендуемы теги:
operator=atvijas Pasts"

view this post on Zulip Michael Validator (May 02 2023 at 14:00):

HellMap said:

You have a small error here:
"Рекомендуемы теги:
operator=atvijas Pasts"

Thanks, I see.

view this post on Zulip HellMap (May 02 2023 at 14:01):

It seems the post website uses address points rather than actual locations. This one appears to be wrong address as well - 1 instead of 1A

view this post on Zulip HellMap (May 02 2023 at 14:04):

By the way, in case you want to parse the website data for collection times:
"Vēstuļu kastītes tukšošanas laiks<br />Darba dienās: 10:00<br />Sestdienās: -<br />Svētdienās: -"
means
"Post box emptying times<br />Work days: ....<br />Saturdays: ....<br />Sundays: ...."
It seems they all follow this syntax

view this post on Zulip Michael Validator (May 02 2023 at 14:05):

Yes, I have it in my plan for the next release.

view this post on Zulip i-ky (May 02 2023 at 14:31):

Are you planning to publish source code for HTML generator? (I assume you don't write it manually...)

view this post on Zulip Michael Validator (May 02 2023 at 14:42):

i-ky said:

Are you planning to publish source code for HTML generator? (I assume you don't write it manually...)

I will publish source code later. Now my goal is to create solution where new country can be added just by new section in config file. I am far from that for now. Code is not refactored and in the current state, it will show me bad in front of colleagues.

view this post on Zulip Rihards Olups (May 03 2023 at 13:48):

Looks great, and the import-oriented approach @i-ky mentioned might be wonderful as well - just that we'll need to contact Latvijas pasts and get a permission to use their data.
Historically, they haven't had the time to go the open data route.

view this post on Zulip Michael Validator (May 03 2023 at 18:16):

Rihards Olups said:

Looks great, and the import-oriented approach i-ky mentioned might be wonderful as well - just that we'll need to contact Latvijas pasts and get a permission to use their data.
Historically, they haven't had the time to go the open data route.

It looks like import is imposible due Lavijas Past has coordinates of bulding with post box adress. As result all post boxes will be in center of building instead of at external wall. Also we already found several examples where distance between real post box and coordinates more then a few dozens of meters.

view this post on Zulip Rihards Olups (May 10 2023 at 12:53):

Heya all, anybody got a chance to check with Latvijas pasts on the postbox data licencing?


Last updated: May 18 2024 at 05:09 UTC