POST
|
Hi Flavie, I had resolved this issue by making an API at my java code. And then call that API from my javascript making call synchronous. Regards Roshni
... View more
03-27-2018
01:53 AM
|
2
|
7
|
2077
|
POST
|
Hi Joshua, Thanks. Yes I actually want a straight line distance between two latlons.
... View more
05-26-2017
01:11 AM
|
0
|
1
|
914
|
POST
|
Here is the REST call that I'm making: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=#1,%20boston&langCode=EN&maxLocations=10&forStorage=false&outFields=City,Region,Country,Postal&f=pjson Response : ArcGIS REST Framework Home Error: Services Directory has been disabled. Code: 403
... View more
05-24-2017
11:59 PM
|
0
|
0
|
271
|
POST
|
Hi, Using findAddressCandidates, please check the response for the following API: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=Bangalore&langCode=E… The address , Region contains characters other than english. I have used lagcode=EN as well. But still these characters appear in the response. Please help on this. { "spatialReference": { "wkid": 4326, "latestWkid": 4326 }, "candidates": [ { "address": "Bangalore, Karnātaka, India", "location": { "x": 77.593686440000511, "y": 12.971936200000471 }, "score": 100, "attributes": { "City": "", "Region": "Karnātaka", "Country": "IND", "Postal": "" }, "extent": { "xmin": 77.476686000000001, "ymin": 12.854936, "xmax": 77.710685999999995, "ymax": 13.088936 } } ] }
... View more
05-24-2017
10:52 PM
|
0
|
0
|
636
|
POST
|
Hi, 1. I'm using the following API , http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=Bangalore&langCode=E… I can see the results but the City field is not populated here And also postal code is not there in the response.. I have noticed same thing with Multiline search as well. Anything missing from my side to call the API? We need CIty and postal code. Let me know how to handle this. Here is the response which I get from ESRI: { "address": "Bangalore, Karnātaka, India", "location": { "x": 77.593686440000511, "y": 12.971936200000471 }, "score": 100, "attributes": { "City": "", "Region": "Karnātaka", "Country": "IND", "Postal": "" }, 2. When searching using postalcode, using the following API: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?Address=&Postal=560037&langCode… See the response below: City State is not populated: { "spatialReference": { "wkid": 4326, "latestWkid": 4326 }, "candidates": [ { "address": "560037", "location": { "x": 77.6929203250005, "y": 12.96380000600044 }, "score": 100, "attributes": { "City": "", "Region": "", "Country": "IND", "Postal": "560037" }, "extent": { "xmin": 77.666640000000001, "ymin": 12.941409999999999, "xmax": 77.718819999999994, "ymax": 12.98658 } } ] }
... View more
05-24-2017
10:11 PM
|
0
|
0
|
637
|
POST
|
Hi Randy Burton and Joshua, Thanks for your reply. So to calculate only distance does not ESRI provide any direct API?
... View more
05-24-2017
09:18 PM
|
0
|
4
|
914
|
POST
|
Hi, I am trying to find distance between two points using the following API. http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=[mytoken]&stops=135.700000,35.… I'm getting below error : {"error":{"code":400,"message":"Unable to complete operation.","details":["The input points are not all located within a single region."]}} Please let me know how to resolve this.
... View more
05-17-2017
10:26 PM
|
0
|
10
|
2496
|
POST
|
Hi, I could somehow add arrows to the lines. But when I zoom in zoom out, the arrow positions keep changing. How to handle this?
... View more
04-03-2017
07:03 AM
|
0
|
0
|
1616
|
POST
|
I have the below sample code which works fine when I do not render on EXTjs panel. I can see the popup template when I click on the graphic. But when I just move the map render inside extjs panel, the popup template never appears. Please help me to resolve this issue. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> <title>Get started with graphics - 4.2</title> <link rel="stylesheet" href="https://js.arcgis.com/4.2/esri/css/main.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/extjs/4.2.1/resources/css/ext-all-debug.css"> <script src="https://js.arcgis.com/4.2/"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/extjs/4.2.1/ext-all-debug.js"></script> </head> <style> </style> <script> </script> <body> <div id="panelId" style="top:0px;height:500px"></div> </body> <script> var view = null; //document.getElementById('panelId').height = window.innerHeight; require(["esri/config"], function(esriConfig) { esriConfig.request.corsDetection = true; corsEnabledServers = ["easyid.scansafe.net","static.arcgis.com","services.arcgisonline.com","localhost:8181"]; }); require([ "esri/Map", "esri/views/MapView", "esri/core/watchUtils", "esri/Graphic", "esri/geometry/Point", "esri/geometry/Polyline", "esri/geometry/Polygon", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/PictureMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "dojo/domReady!" ], function( Map, MapView,watchUtils, Graphic, Point, Polyline, Polygon, SimpleMarkerSymbol, PictureMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol ) { var map = new Map({ basemap: "topo" }); view = new MapView({ center: [-80, 35], container: "viewDiv", map: map, zoom: 3 }); /********************** * Create a point graphic **********************/ // First create a point geometry (this is the location of the Titanic) var point = new Point({ longitude: -49.97, latitude: 41.73 }); // Create a symbol for drawing the point var markerSymbol = new SimpleMarkerSymbol({ color: [246, 119, 40], outline: { // autocasts as new SimpleLineSymbol() color: [255, 0, 255], width: 4 } }); // Create a graphic and add the geometry and symbol to it var pointGraphic = new Graphic({ geometry: point, symbol: markerSymbol, popupTemplate:{ title:"Point Graphic", content:"<b> This is example</b>" } }); view.graphics.addMany([pointGraphic]); }); Ext.create('Ext.panel.Panel', { title: 'Hello', layout: 'fit', width: 1200, height:window.innerHeight, html: '<p>World!</p><div style="width:1000px; height:500px;" id="viewDiv"></div>', renderTo: "panelId", }); </script> </html>
... View more
03-26-2017
06:51 AM
|
0
|
0
|
1056
|
POST
|
Hi , I'm trying to use the following APIS: https://www.arcgis.com/sharing/generateToken?<parameters> http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?<parameters> http://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?<Parameters> I did not find the information if these APIS are synchronous or asynchronous. When I'm trying to access them using javascript, somehow I see these APIS are Asynchronous. Are these APIS asynchronous ?
... View more
02-27-2017
05:07 AM
|
0
|
0
|
893
|
POST
|
Is there a way to make the esri/request synchronous? esriRequest(url, { responseType: "json", callbackParamName: "callback" }).then(function(response){ console.log(resp); });
... View more
02-24-2017
08:22 AM
|
1
|
9
|
3502
|
POST
|
Ok. Thanks so much for all the help. If any of you come across to the kind of issue I'm facing please provide suggestion.
... View more
02-23-2017
12:58 AM
|
0
|
0
|
897
|
POST
|
I should have the method to call using ESRI API in a separate class and then call that from other class.
... View more
02-23-2017
12:21 AM
|
0
|
2
|
897
|
POST
|
My requirement is to fetch the data. and use it somewhere else.
... View more
02-22-2017
10:29 PM
|
1
|
0
|
897
|
POST
|
i need to store the response and use it in some other method. Thats the reason I want to do it that way.
... View more
02-22-2017
10:15 PM
|
0
|
5
|
897
|
Title | Kudos | Posted |
---|---|---|
1 | 02-22-2017 10:29 PM | |
1 | 02-22-2017 12:21 AM | |
2 | 03-27-2018 01:53 AM | |
1 | 02-24-2017 08:22 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|