POST
|
Try importing the product license before arcpy to run alone. For example import arceditor import arcpy
... View more
02-26-2015
02:23 PM
|
0
|
8
|
823
|
POST
|
Sorry about the delay. For development purposes, we were geocoding on one machine and routing on another but it certainly works if both services are on the same machine. var locatorURL = "http://geocodeserver:6080/arcgis/rest/services/address_comp/GeocodeServer"; var routeURL = "http://routeserver:6080/arcgis/rest/services/route_service/NAServer/Route"; sr = new SpatialReference(4326); var directionsOptions = { arcgisGeocoder : false, geocoders :[{ url : locatorURL, singleLineFieldName: "SingleLine", name: "Logisys Geocoder", outSpatialReference : sr, wkid : wkid, outFields : "Loc_name"}] }; rp = new RouteParameters(); rp.outSpatialReference = {"wkid":wkid}; rp.returnRoutes = false; rp.returnDirections = true; var directions = new Directions({ map : map, geocoderOptions : directionsOptions, routeTaskUrl : routeURL, routeParameters : rp, directionsLengthUnits : Units.MILES }, "directions"); directions.startup();
... View more
10-23-2014
10:39 AM
|
0
|
0
|
344
|
POST
|
Hi Robert, Yes, you should be able to set the geocoderOptions on the constructor parameters with a default of Geocoder settings. They can be these settings: https://developers.arcgis.com/javascript/jsapi/geocoder-amd.html#geocoder1 I believe that geocoders on the directions widget is just a property. Let me know if that works. Thanks Matt, Thanks, that worked. The geocoderOptions versus geocoders in the parameters is a little confusing. I didn't see how a Geocoder[] would work since they are already tied to a node.
... View more
07-01-2014
11:28 AM
|
0
|
2
|
344
|
POST
|
I am attempting to use this widget with a local GeocoderServer. I can create the Geocoder and specify the URL, setting arcgisGeocoder to false, and the Geocoder works fine. I can also set the routeTaskUrl in the Directions constructor to the local NA service and it is used. However trying var geocoderList = []; geocoderList.push(geocoder); var directions = new Directions({ map : map, geocoders : geocoderList, ..... still results in a call to geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer While the World GeocodeServer does return a result, the values are not compatible with the local NA server. Is there any way to override the Directions widget geocoder?
... View more
06-19-2014
11:12 AM
|
0
|
4
|
2470
|
POST
|
I am attempting to migrate our existing code, which is all 9.2/9.3 .NET 2005 VC++ to 10.0. The showstopper is the RuntimeManager.Bind() call that is now necessary prior to doing anything. I found a similar question from November 2009 which was never answered. The VC++ appendix that was added to the documentation was a rehash of the older generic documents and doesn't cover this fundamental change. I found the snippet in the VCPP appendix which resolved the problem.
... View more
07-30-2010
11:56 AM
|
0
|
0
|
121
|
POST
|
I am attempting to migrate our existing code, which is all 9.2/9.3 .NET 2005 VC++ to 10.0. The showstopper is the RuntimeManager.Bind() call that is now necessary prior to doing anything. I found a similar question from November 2009 which was never answered. The VC++ appendix that was added to the documentation was a rehash of the older generic documents and doesn't cover this fundamental change. There is no olb corresponding to the ArcGISVersion.dll in the Common Files\ArcGIS\bin directory, and importing the dll only seems to enable a IArcGISVersion to be recognized, which fails on instantiation. The VB and C# examples are not helpful. Thanks for any information.
... View more
07-29-2010
03:35 PM
|
0
|
1
|
690
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|