Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can someone help me with my adresses? #22

Closed
ToMoSK1 opened this issue Sep 21, 2020 · 5 comments
Closed

Can someone help me with my adresses? #22

ToMoSK1 opened this issue Sep 21, 2020 · 5 comments

Comments

@ToMoSK1
Copy link

ToMoSK1 commented Sep 21, 2020

Hey guys im totally new to this and im trying to get this working. I managed to get the module on the screen it shows loading indefinetly i think i just put the adresses wrong, i really dont know how to add it there. if someone can help me how to formulate it i would really appreciate it!

Adress 1: https://goo.gl/maps/aRcCEetg3f11dZUo9
Adress 2: https://goo.gl/maps/qZD1SWUr3DP8QApa9
Origin Adress: https://goo.gl/maps/KG1BzbZwxAZfNpds7
i tried from origin adress to way on 1 like this:
{ module: 'MMM-MyCommute', position: 'top_right', header: 'MHD', classes: 'default everyone', config: { apiKey: 'MY API KEY', origin: 'Raketová 1472/1, Košice, 040 12', startTime: '00:00', endTime: '23:59', hideDays: [], destinations: [ { destination: "Námestie osloboditeľov 3377/1, Košice, 040 01", label: "Mesto", mode: "transit", time: null }, ]

@ivanovd
Copy link

ivanovd commented Sep 24, 2020

Try this:
Origin: 'Raketová 1472/1, 040 12 Nad jazerom, Slovakia'
Destination: 'Námestie osloboditeľov 3377/1, 040 01 Staré Mesto'
Destination #2: 'Alza.sk, Žriedlová 11, 040 01 Košice, Slovakia'

@radokristof
Copy link

You can use GPS coordinates also instead of postal address. That way the address can't be wrong.

@c-m0s
Copy link

c-m0s commented Oct 10, 2020

The search-algorithm was much more tolerant a couple of years ago, when I originally installed my MagicMirror. Now I don't find another working solution than providing GPS-Coordinates, like @radokristof suggested, I must say.
In that case the parameter is still a string for origin and/or destination:

e.g.
destination: "48.137395,11.5743542",

@ivanovd
Copy link

ivanovd commented Oct 10, 2020

It works with string addresses for me.

@radokristof
Copy link

No one said that it won't work with postal addresses. However if you use a postal address, anyway it will parse it first into a GPS coordinate and then provide a calculated direction. This parsing is mostly correct, but if it can't parse it correctly, then it will provide a wrong GPS coordinate, thus the calculation will be wrong.

@qistoph qistoph closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants