1.  
    Hi Pat

    Could you tell us which information you have of your resource, for example, the record of GPS positions.

    One good match of your requirement could be using Route Highlighting, link as following:
    http://docs.geobase.info/html/ce667822-7580-49f7-a471-9e13790dfe33.htm

    We don't support Route Highlighting within JavaScript, but you could write an ASP.NET Web Service to perform the RouteHighlighting operation using the .NET classes. This would generate a Directions object, then serialize its Points property as an array of LatLons and return these to JavaScript. This array of points could then be used with the RouteLayer class to display the RouteHighlight on the map.

    More details about MapLayers.RouteLayer Class can be found via the following link:
    http://docs.geobase.info/html/90f869be-4989-4bc3-9cd7-8f211d3c6cce.htm

    if you don't want to create a Web Service, then the Route.GetDirections function could be used to create an approximation of the route by using each GPS read as a separate route stop. However, this will try to calculate the quickest route between all points, rather than the route most likely travelled, so this may not match the actual path of the vehicle.
    More details about getDirections function can be found via the following link:
    http://docs.geobase.info/html/aef37ed8-0724-4ec2-b59d-885a93ceadb5.htm

    Thanks
    Jun
  2.  
    Hi Pat,

    For the webservice, have you confirmed that the response is being returned correctly? Are the locs objects LatLons, or just strings representing LatLons? You may need to deserialize the response and rebuild these into LatLon instances.

    It might be easier to send sample code of your RouteHighlight service to gbsupport@telogis.com so we can give further help debugging here.

    For your second query, what do you mean by the "course" icons? Do you mean the directed stop arrows seen when using RouteHighlighting in .NET?

    This should be possible by iterating through the stops in your route and creating an ImageObject for each one. We don't supply any directed arrow icons with our JavaScript API, but you could easily create your own or use rotation in JavaScript to display these. You can then inspect the heading of each RouteStop to ensure the appropriate arrow is drawn.

    Quick note on your code - generally speaking, it should't be necessary to boost the ExtraProcessingRatio of your RoutingStrategy. That line boosting it to 30 somehow got into one of our tutorials, but has subsequently been removed, as it has an impact on performance. The ExtraProcessingRatio can be boosted to deliver more accurate routes at the cost of calculation time, but in practice rarely needs to be used.

    Thanks,

    Alex