Giter VIP home page Giter VIP logo

shortest-path-distance-using-esri's Introduction

Shortest-Path-Distance-Using-ESRI

Find the Shortest Path/Distance between destinations using ESRI API and Plugins

In this repository I discussed about to find the shortest path and direction between one location to another using ESRI

  • Enter the Source and Destination address
  • Options to add stops between address
  • Options to select speed units
    • KM
    • MI
  • Options to different type travel selection
    • Driving Distance/Time
    • Rural Driving Distance/Time
    • Trucking Distance/Time
    • Walking Distance/Time
  • Options to select travel options now or later
    • Leave now
    • Depart at
    • Time Unspecified

Select the address in option 1 and option 2 (Note: If you would like to add more destinations click ADD to add destination address)

Code description - (doji/javascript)

  • Initialize map object using "esri/map" class and setup the base attributes based on the requirement.
 
var map = new Map("map", {
          basemap: "streets",
          center:[-98.56,39.82],
          zoom: 4
        });
  • Initialize direction object using "esri/dijit/Directions" class and add the routeTaskUrl
 
  var directions = new Directions({
          var directions = new Directions({
          map: map,
          routeTaskUrl: "https://utility.arcgis.com/usrsvcs/appservices/srsKxBIxJZB0pTZ0/rest/services/World/Route/NAServer/Route_World"
        },"dir");
        directions.startup();
      });
      
  • Initiate direction by
directions.startup();

Add the proxy handler to handle communications with the Routind and Direction Service

shortest-path-distance-using-esri's People

Contributors

dhana29 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.