Yara
Yara

Reputation: 4555

Bing Maps v7. Direction manager: callback with parameters

For example, I have three addresses in my 'myAddress' collection:

№, IdAddress, Address

1, 255, New York street1

2, 256, New York street2

3, 257, New York street3

Then I put them in directionsManager and call calculateDirections():

var waypoint = new Microsoft.Maps.Directions.Waypoint({address: myAddress[i].address });
mapObj.directionsManager.addWaypoint(waypoint);
mapObj.directionsManager.calculateDirections();

Question: how to put IdAddress in waypoint? I need to process response by IdAddress, not by Address description.

Upvotes: 0

Views: 529

Answers (1)

Alexander
Alexander

Reputation: 607

Just use

waypoint.YOUR_PROPERTY_NAME = YOUR_VARIABLE;

Upvotes: 3

Related Questions