Addresses are not showing in Direction Widget WAB 2.6

1338
11
Jump to solution
09-20-2018 03:39 AM
SivaramKrishnan2
New Contributor III

Hi

I am creating a Direction Widget in WAB 2.6. There i'm giving input stops but in the route results, i could see latitude and longitudes instead of addresses as shown in the below screenshots.

Please help me to overcome this issue.

Thanks & Regards

Siva

0 Kudos
1 Solution

Accepted Solutions
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Siva,

   Are you using your own Network service or esri's?

0 Kudos
SivaramKrishnan2
New Contributor III

Robert,

Thank you for the response.

We are using our own network service which is deployed in ArcGIS server 10.5.1

Regards

Siva

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
SivaramKrishnan2
New Contributor III

Robert,

Thank you so much for that link.

I have included the below piece of code in my direction widget's locator part.

singleLineFieldName: "SingleLine",
searchTemplate:"${Match_addr}",
name: "name",
localSearchOptions: {
minScale: 300000,
distance: 50000
}

This is working, but still i'm getting latitude and longitudes for some addresses(i.e stop points).

Thanks & Regards

Siva

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Siva,

  It is possible that your service is unable to find an address for that location then. You would have to look at the Network tab and see what the server is returning for that loaction.

SivaramKrishnan2
New Contributor III

Thank you Robert,

I checked the network tab of the browser and got this messages.

is there any steps or workaround to overcome this issue ?

Regards

Siva

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Siva,

   The error says invalid query parameters. Can you copy the url with the parameters that is being submitted and post here (if you right click on your highlighted request in the image you will get an option to copy the url)?

SivaramKrishnan2
New Contributor III

Robert,

please refer the URL's for both success and failure cases.

Failed Coordinates(Not getting address):


https://<My 10.5.1 Server>/arcgis/rest/services/AddressLocator/GeocodeServer/reverseGeocode?outSR=%7B%22wkid%22%3A4326%7D&location=%7B%22x%22%3A77.36622486425071%2C%22y%22%3A28.70099093986658%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&distance=100&f=json


https://<My 10.5.1 Server>/arcgis/rest/services/AddressLocator/GeocodeServer/reverseGeocode?outSR=%7B%22wkid%22%3A4326%7D&location=%7B%22x%22%3A77.36194183444022%2C%22y%22%3A28.775230123248484%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&distance=100&f=json

Passed Coordinates(getting the adresses):


https://<My 10.5.1 Server>/arcgis/rest/services/AddressLocator/GeocodeServer/reverseGeocode?outSR=%7B%22wkid%22%3A4326%7D&location=%7B%22x%22%3A77.14707650561374%2C%22y%22%3A28.76309487211875%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&distance=100&f=json

Thanks & Regards

Siva

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Siva,

   The submitted url parameters are the say besides the change to the x and y. It just has to be that you locator is unable to resolve an address for that location. I am not sure what to do.

0 Kudos