Page 1 of 1

OSM Routing?

Posted: 05 Jun 2018, 03:24
by ChrisSchick
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.

Re: OSM Routing?

Posted: 06 Jun 2018, 16:54
by Jan
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

Re: OSM Routing?

Posted: 05 Sep 2018, 10:36
by axl-g
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

Re: OSM Routing?

Posted: 05 Sep 2018, 13:04
by axl-g
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.

Re: OSM Routing?

Posted: 06 Sep 2018, 10:24
by Jan
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 :idea:

Missing DIV - do you get the problem in component or plugin?

Re: OSM Routing?

Posted: 06 Sep 2018, 11:20
by axl-g
Hi!

responses are ok, not too long. I tried OpenStreetMap (Germany) and mapbox with api. Same result.

I use the component.

Re: OSM Routing?

Posted: 07 Sep 2018, 22:34
by Jan
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

Re: OSM Routing?

Posted: 03 Mar 2019, 23:04
by Jan
Hi, missing </div> should be OK in version 3.0.6

https://www.phoca.cz/news/1019-phoca-ma ... 6-released

Jan