cancel
Showing results for 
Search instead for 
Did you mean: 

Routing in Visual Business

Former Member
0 Kudos

Hi,

I would like to do routing in Visual business. It seems the only way to draw a path is to use polygon class and provide lat long for all the points where road turns (intermediate points also in case of an arc so that it's rendered realistically). Most routing service provide turn by turn navigation which are not suitable for drawing polygon as the actual road and the polygon line would be way off the mark between two points which are good distance apart.

For ex the following manuevre from mapquest

{

                        "signs": [],

                        "index": 4,

                        "maneuverNotes": [],

                        "direction": 3,

                        "narrative": "Take Eastern Freeway.",

                        "iconUrl": "http://content.mapquest.com/mqsite/turnsigns/rs_slight_right_sm.gif",

                        "distance": 8.216,

                        "time": 469,

                        "linkIds": [],

                        "streets": [

                            "Eastern Freeway"

                        ],

                        "attributes": 128,

                        "transportMode": "AUTO",

                        "formattedTime": "00:07:49",

                        "directionName": "Northeast",

                        "mapUrl": "http://open.mapquestapi.com/staticmap/v4/getmap?key=Fmjtd|luur2hua2q,as=o5-9wax0z&type=map&size=225,...",

                        "startPoint": {

                            "lng": 72.842689,

                            "lat": 18.957824

                        },

                        "turnType": 1

                    }

would result in straight line for a distance of 8.2 miles whereas the actual road has lots of bends.

How do we get around this problem?

Is there any free service which would give long list of lat longs which are say 100 metres apart?

Accepted Solutions (1)

Accepted Solutions (1)

ralf_rath
Explorer
0 Kudos

Hi,

It depends on the map provider service which polygone you receive. Some map providers provide only points where you as a driver have to leave the current road. Some have additional points which follow the actual road and provide a realistic route on a map.

It depends in most cases of a parameter which type of return polygone you get.

Some vendors provide a different routing service for getting more points.

Visual Business itself doesn't include an own routing service - we have an oData service as an single access point for applications and this service calls an external map provider.

So it depends on your map service provide and the parameter of your service call.

Since each provider has their own format, you have to look into their documentation how to achieve this.


Former Member
0 Kudos

Hi Ralf,

One service didn't suffice the requirement of getting enough coordinate points and optimized route.So we used 2 difference services (XSS Issue) but there are ways to get around that.

Thanks.

Amit

Answers (0)