OSM Routing?

Phoca Maps - displaying maps in Joomla! CMS
ChrisSchick
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 30 May 2018, 19:20

OSM Routing?

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OSM Routing?

Post 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
If you find Phoca extensions useful, please support the project
axl-g
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Sep 2018, 10:29

Re: OSM Routing?

Post 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
axl-g
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Sep 2018, 10:29

Re: OSM Routing?

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OSM Routing?

Post 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?
If you find Phoca extensions useful, please support the project
axl-g
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Sep 2018, 10:29

Re: OSM Routing?

Post by axl-g »

Hi!

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

I use the component.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OSM Routing?

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OSM Routing?

Post by Jan »

Hi, missing </div> should be OK in version 3.0.6

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

Jan
If you find Phoca extensions useful, please support the project
Post Reply