MMM-LocalTransport icon indicating copy to clipboard operation
MMM-LocalTransport copied to clipboard

Empty module for some train stations

Open fabkai opened this issue 8 years ago • 9 comments

Hello @CFenner ,

Your module is great, many thanks for that.

Unfortunately I have the problem that some connections are not displayed (not all!) at the mirror (after "load connections ..." it remains empty). But the train stops are located in Google Maps (API).

Do you have any idea?

As an example my current Config:

                {
                        module: 'localtransport',
                        header: 'Bahn nach Heddernheim',
                        position: 'top_left',
                        config: {
                                api_key: '***',
                                origin: 'Konstablerwache',
                                destination: 'Heddernheim',
                                updateInterval: 2,
                        }
                },

fabkai avatar Dec 12 '16 23:12 fabkai

Same problem here. Any ideas?

alleslukas avatar Dec 13 '16 12:12 alleslukas

Hey there, please try to enter the names, that google suggests.

Heddernheim, Frankfurt am Main Konstablerwache, 60313 Frankfurt am Main

Maybe that works, I'm not using the module currently, so I can't try it.

CFenner avatar Dec 17 '16 09:12 CFenner

I also noticed it at smaller stations. but i will only show two working (bigger) destination stations since i found no solution for the smaller stations located in the city. You can try to use the place_id from google, but that did not help me with my "small" station

3DJupp avatar Dec 25 '16 16:12 3DJupp

Try using coordinates instead, i.e.:

for Humboldtstr. 2, Freiburg I used: 47.99343529999999,7.848322100000001 which works perfectly for now.

njoerd114 avatar Dec 29 '16 13:12 njoerd114

Unfortunately no success with the place_id and the coordinates. For lager stations, everything works. Small subway and tram stations don’t work. @CFenner Have you another idea or you could install the module again?

fabkai avatar Jan 04 '17 11:01 fabkai

I have again tested different subway / tram stations in different ways, for example: origin: Coordinates: '50.154956, 8.686294', PlaceID: 'ChIJg4KbNSwPvUcRG6T13dfeYy4', Text: 'Sigmund-Freud-Straße, Frankfurt am Main, Deutschland',

destination: Coordinates: '50.082594, 8.588766', PlaceID: 'ChIJtSOq0UQKvUcR8peq8_WsWAI', Text: 'Ferdinand-Dirichs-Weg, Frankfurt am Main, Deutschland',

Unfortunately without success. The Google Developer Console displays the requests without errors. But the mirror remains empty. In the log of the mirror is also nothing to see.

What can this still be?

fabkai avatar Jan 05 '17 20:01 fabkai

Google Maps tells me Die Route von "Sigmund-Freud-Straße, 60435 Frankfurt am Main" nach "Ferdinand-Dirichs-Weg, 60529 Frankfurt am Main" mit öffentlichen Verkehrsmitteln konnte nicht berechnet werden. or Die Route von "50.154956, 8.686294" nach "50.082594, 8.588766" mit öffentlichen Verkehrsmitteln konnte nicht berechnet werden. By the way, Google Maps shows me where these places are and returns a 3 hour walk if asked for it. Which is odd, but at least explains where the problem lies. (i.e. with Google/ the local transport provider)

Maybe one can display an error message instead of an empty list, though the empty list so far seems to be the nicer solution, as sometimes during the night some routes are not available and you don't always want an error message for that.

GHLasse avatar Apr 30 '17 11:04 GHLasse

@GHLasse Yes you are right. I have not tested it on Google Maps directly =) Apparently, maps do not calculate the travel time between two metro stations in Frankfurt.

As an example: Start metro station: Sigmund-Freud-Straße Destination metro station: Ronneburg-Straße Despite the fact that I have chosen public transport, Google Maps suggests a route afoot: https://www.google.de/maps/dir/Sigmund-Freud-Stra%C3%9Fe,+60435+Frankfurt+am+Main/Ronneburgstra%C3%9Fe,+Frankfurt+am+Main/@50.152709,8.6853032,17z/data=!3m1!4b1!4m14!4m13!1m5!1m1!1s0x47bd0f2c359b8283:0x2e63ded7ddf5a41b!2m2!1d8.686277!2d50.1547225!1m5!1m1!1s0x47bd0f29140d240b:0xfc941fd8a6bbd087!2m2!1d8.6886179!2d50.15068!3e3

Probably this is the fault.

fabkai avatar May 02 '17 16:05 fabkai

So Google didn't consider Frankfurt am Main important enough to add the public transport routing for it? Very strange but if this is the case, the only option I can think of, is to at least display the walking option. But that requires another request in case the first one returns empty... I guess people living in Frankfurt a. M. will have to rely on other localtransport modules :-( or just complain to Google to fix it :-)

GHLasse avatar May 14 '17 18:05 GHLasse