Influence the route of the path

  • babu1965
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 8 months ago #10199 by babu1965
Replied by babu1965 on topic Influence the route of the path
Hi Dimitry,
I'm sorry for called you Adrian before.
I'm not sure have understood, so I explain step by step what I've done:
1 created a category
2 created a placemark group
3 created 2 placemark of the same category and Placemark group
the first one have the coordinate of the company (end destination)
the second one have the coordinate in the main road where I wish the path go through
4 selected Routes menu, I've created a new one and in Route by Placemarks I've put the ID of the two placemarks, so I've selected Yes in Provide Route Alternatives and Optimize Waypoints and selected Map Title and Category

So now my map is as you can see at the link Map

But for example if I'm putting in the field get path "genova" the path don't pass through the second placemark :unsure:

Please Log in or Create an account to join the conversation.

  • babu1965
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 8 months ago #10202 by babu1965
Replied by babu1965 on topic Influence the route of the path
Any suggestion?

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #10207 by Dima
Replied by Dima on topic Influence the route of the path
Hi

Sorry, I just don't understand you.
If you have placemarks, and want to use it as start/end point - you can do it.
For example, look at your map.
When it loads, you can drive your route to map center, for example it can be company destination.
And search field will be start point



Now if you click on placemark, you can have route toolbar in infowin



If you click set as start point, you'll get new view of search field



You can change start/end point by clicking on A or B icon

Don't forget support my developments: post review in JED , donate , help with translation ;)
Attachments:

Please Log in or Create an account to join the conversation.

  • babu1965
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 8 months ago #10211 by babu1965
Replied by babu1965 on topic Influence the route of the path
Hi Dimitry,
I try to explain better.
Now in the site I've published off the second placemark and Route, so if I ask for example a trip from "NoviLigure" to "Mectend" (company) the route and the point of arrival are wrong as you can see in the image 1 .



The same trip request to Google map is right, we have the right route and point of arrival, as you can see on image 2.


This is the first problem

The secon one if I set the trip from "Genoa" and "Mectend" on Google map the route is wrong because it follow a route with narrow streets but the point of arrival is right, as you can see on image 3

If I set the same route on the site map are wrong the route and point of arrival as on image 4

So the question is:
how I do for have the right route and point of arrival as yuo can see in the images 2 and 5 ?



Thanks in advance :)

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #10213 by Dima
Replied by Dima on topic Influence the route of the path
On image 1 I can see that point B is not when I can see your marker. I think you define points by text address, and the route use geocoder to get point positions.
Try to draw route by markers, ie you have 2 markers (start and end), which defined by latitude/longitude.
Set for your route not text address, but placemarks IDs.

PS: Google Maps and Google Maps JS API can have different algorithm to draw the route, I can't control it.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • babu1965
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 8 months ago #10215 by babu1965
Replied by babu1965 on topic Influence the route of the path
Hi,
I've tried to draw a route by markers, as you can see at agriturismovip.com/contatti.html and i set it IDs instead that address so I'm in the same conditions of before.
As you can see now the route from "Novi Ligure" to "Mectend" is right, unfortunately from "Genoa" to "Mectend" no. It is the same of before.
Of course your component is fantastic, but can't control the Google's algorithm. I would be concerned if it were that :woohoo: :) :) :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum