In this component I have consumed API service provided by ISRO BHUVAN API. In this we have a shortest path api by which we can get the shortest path of any two point provided by its latitude and longitude of a particular state in India.
We have Input parameters LAT1,LAT2,LONG1,LONG2 and AccessToken in REST API
To get the access token we must register on BHUVAN API site and then login. The Access Token is valid for 24 hours.
I have kept the input parameters dynamic with access token included in the Get method url. In response we get the shortest path in form of GEOJSON.