Dear all

Getting back to my original discussion 3 years ago (see attached), I have now completed a script and created an according wiki page for my first intended automated edit:

https://wiki.openstreetmap.org/wiki/Automated_edits/StopConsuming_StartProducing#First_documented_mechanical_edit_of_Titsa_bus_stops

I would first like to execute a simple update of 45 nodes on OSM. Later there will be another smaller automated edit, which I will also discuss first.

If these two (or three) runs are successful, I would like to execute the final and large automated edit to update all Titsa bus stops on Tenerife with their according time table link, so people can see upcoming buses for each bus stop from their according OSM navigation app.


Looking forward to hearing from you.

Best, Klaus


Le 24/03/2023 à 22:29, [email protected] a écrit :

See below ...

On 24/03/2023 21:33, Mateusz Konieczny via talk wrote:
Mar 24, 2023, 20:40 by [email protected]:

        What do you think about this idea? What would be the best way
        to achieve this in an automated way?


    If these urls are following a fixed scheme like you mentioned
    then I see no need to add the urls. There is no need to store
    them if you can create them from a combination of the hard coded

Well, as template for links is not present then it is not a good reason against it. I would be more concerned whether links will be stable or change format soon.

I also don't quite understand the reasoning against such a generic web link. The only way to obtain that link would be through the QR code at the bus stop, which is an obstacle. Not even the website actually has this information on a separate page, but only through a popup clicking onto the station. And I think it would greatly improve the usefulness of the bus stop nodes in the map. Same is true for the bus line links.

Why search through the Titsa website to gain this information when it can readily be associated with the node. If I click onto a restaurant or hotel and get their website, that's not different, is it? I wouldn't go though Google to find such information.

    It requires knowledge how databases work in general, why
    normalization & abstraction is important and at last you need to
    be developer.

OSM map database is not normalized (at least as far as tags are concerned)

    is actually a good thing as it an obstacle to not make it too
    easy for "children" (in double quotes for reasons) and protects
    us from edit spaming.

this really could be phrased better without making it insulting
and it does not really protect as strongly, though maybe it could be worse

    This is the reason why I currently abstain from writing a python3
    script to make it easier to write editing bots.

This scripts exist already, and were written multiple times already
one more would not change much

@Mateusz: Any help regarding the script would be greatly appreciated. I have worked with databases before (PostgreSQL, MySQL, SAS) and am aware of the pitfalls.

Best, Klaus

--- Begin Message ---
Hi there

I would like to update all bus stops on the island of Tenerife with a link to the status website of upcoming connections to this bus stop:

 * An example of bus stop: https://www.openstreetmap.org/node/1147359056
 * Each such bus stop inhibits a reference: ref=4004
 * This reference can be used to obtain that bus stops upcoming
   connections: http://movil.titsa.com/infoparada.php?IdParada=4004
 * Actually, in reality each bus stop has a QR code to check this
   status, which leads to the latter website.
 * Hence, all these QR codes are spread across the island, I assume the
   link will seldomly change.
 * There is also an Ajax link:
   https://titsa.com/ajax/xGetInfoParada.php?id_parada=4004 (But thats
   directly from the website and probably not that stable as the former
   one).

I think, this link would be good to have with each bus stop for Tenerife on OSM, so one can easily derive the upcoming departure times, even when not being nearby the bus stop.


Furthermore each bus line on the island has a timetable available online, that I would like to link for each bus line:

 * An example bus line: https://www.openstreetmap.org/relation/7165110
 * Each such bis line inhibits a reference code: ref=419
 * This reference can be used to obtain that bus lines timestable and
   overview website:
   https://titsa.com/index.php/tus-guaguas/lineas-y-horarios/linea-419
 * An alternative link is this:
   https://movil.titsa.com/infolinea.php?IdLinea=021 (But I guess, it
   is less useful and does not immediately display the general times.)

Also these links would be good to have with each bus line.


What do you think about this idea? What would be the best way to achieve this in an automated way?

I know the Overpass API and I could probably readily identify all the relevant bus stop nodes and bus line relations.  However, I have never updated such things in an automated way.

Many thanks

Klaus

--- End Message ---
_______________________________________________
talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk

Reply via email to