I want to switch from Google Maps to OSM, but the routing-option is pretty confusing.
Where to get router-service-url and router-profile? I managed to get an API-key, but with only that, I get a blank frame.
OSM Routing?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OSM Routing?
Hi, it depends on the used service.
On this video, I tested it with OSRM's demo server - unfortunately this server is a demo and there are mostly no responses
Which service did you use? Did you get something (error or warning messege) in javascript console?
https://www.phoca.cz/documents/16-jooml ... -conflicts
Jan
On this video, I tested it with OSRM's demo server - unfortunately this server is a demo and there are mostly no responses
Which service did you use? Did you get something (error or warning messege) in javascript console?
https://www.phoca.cz/documents/16-jooml ... -conflicts
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 05 Sep 2018, 10:29
Re: OSM Routing?
Have the same problem.
Joomla 3.8.12
Phoca Maps 3.0.5
http://graf-nutzfahrzeuge.de/karte
No conflicts reported, but: SyntaxError: missing : after property id
Vid doesn't help, need to know: router-service-url and router-profile. May be then it will work?
Greetings
Alexander
Joomla 3.8.12
Phoca Maps 3.0.5
http://graf-nutzfahrzeuge.de/karte
No conflicts reported, but: SyntaxError: missing : after property id
Vid doesn't help, need to know: router-service-url and router-profile. May be then it will work?
Greetings
Alexander
-
- Phoca Newbie
- Posts: 3
- Joined: 05 Sep 2018, 10:29
Re: OSM Routing?
Found this way:
useing OpenStreetMap (Germany)
Router Profile: some name
Router Service URL: https://www.openstreetmap.de/
Now routing is working, but:
- routing list is only in english available
- list displays in a dropdown window
- print button is not displayed
an other problem occured when useing OpenStreetMap (not with google maps):
the layout of my website gets destroyed by the map. There is missing a closing div-tag somewhere. I added one in the description editor, and this works. Unfortunately everytime I save some change in my map it disapears and I have to add again. No idea how to solve.
useing OpenStreetMap (Germany)
Router Profile: some name
Router Service URL: https://www.openstreetmap.de/
Now routing is working, but:
- routing list is only in english available
- list displays in a dropdown window
- print button is not displayed
an other problem occured when useing OpenStreetMap (not with google maps):
the layout of my website gets destroyed by the map. There is missing a closing div-tag somewhere. I added one in the description editor, and this works. Unfortunately everytime I save some change in my map it disapears and I have to add again. No idea how to solve.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OSM Routing?
Hi, mostly the routing is only a demo routing (long responses). To get the routing properly displayed, I think, some specific API like mapbox or thunderforst must be used
Missing DIV - do you get the problem in component or plugin?
Missing DIV - do you get the problem in component or plugin?
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 05 Sep 2018, 10:29
Re: OSM Routing?
Hi!
responses are ok, not too long. I tried OpenStreetMap (Germany) and mapbox with api. Same result.
I use the component.
responses are ok, not too long. I tried OpenStreetMap (Germany) and mapbox with api. Same result.
I use the component.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OSM Routing?
Hi, thank you for the info, looking at the bug list I see this info:
viewtopic.php?f=38&t=59099&p=152488#p152486
So this should be the same problem, please try to edit the code and let me know if it solved the problem.
Thank you, Jan
viewtopic.php?f=38&t=59099&p=152488#p152486
So this should be the same problem, please try to edit the code and let me know if it solved the problem.
Thank you, Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: OSM Routing?
Hi, missing </div> should be OK in version 3.0.6
https://www.phoca.cz/news/1019-phoca-ma ... 6-released
Jan
https://www.phoca.cz/news/1019-phoca-ma ... 6-released
Jan
If you find Phoca extensions useful, please support the project