Code Challenge for Supply Hound to design a route planner using The World Bank API.
- NodeJS
- Postman
Run script using node index.js
Create a new Postman (or equivilent API Test Application) GET request.
Point the request to http://localhost:3000/
and use one of the following endpoints:
- Task 1:
/getCountry
- Query Parameters:
- countryCode = ### (Replacing ### with an appropriate Country Code)
- Query Parameters:
- Task 2:
/getNearbyCities
- Query Parameters:
- minLongitude = ## (replacing ## with the longitude value)
- maxLongitude = ## (replacing ## with the longitude value)
- minLatitude = ## (replacing ## with the latitude value)
- maxLatitude = ## (replacing ## with the latitude value)
- Query Parameters:
- Task 3:
/getRoute
- Query Parameters:
- citiesToVisit = [START, A, B, END] (replacing values with capital city names)
- Query Parameters: