Clone the project from below url https://github.com/vijaykosis/EscapeInterview.git
Import the project into any id intellij /Escilpe
Run the Application As spring boot Main class EscapeInterviewApplication.java
http://localhost:8080/swagger-ui.html#/distance-calculate-controller/getShortestDistanceUsingGET
Enter the city eg Mumbai
you will get the respose like below
[ { "id": "BSA", "name": "Bosaso", "location": { "lat": 11.275541, "lon": 49.187899 }, "countryName": "Somalia", "iata": null, "rank": 88, "countryId": "SO", "dest": null, "airports": [ "BSA" ], "images": [ "4.jpg", "7.jpeg" ], "popularity": 5.00001, "regId": "eastern-africa", "contId": "africa", "subId": null, "terId": null, "con": 1, "km": 2683 }, { "id": "ASF", "name": "Astrakhan", "location": { "lat": 46.358804, "lon": 48.059934 }, "countryName": "Russia", "iata": null, "rank": 46, "countryId": "RU", "dest": "g298513", "airports": [ "ASF" ], "images": [], "popularity": 6.3960855161740895, "regId": "eastern-europe", "contId": "europe", "subId": null, "terId": null, "con": 9, "km": 3787 }, { "id": "CCK", "name": "Home Island", "location": { "lat": -12.170692, "lon": 96.841748 }, "countryName": "Cocos (Keeling) Islands", "iata": null, "rank": 127, "countryId": "CC", "dest": null, "airports": [ "CCK" ], "images": [ "1.jpg", "2.jpg" ], "popularity": 5.00001, "regId": "australasia", "contId": "oceania", "subId": null, "terId": null, "con": 2, "km": 4355 }, { "id": "OBY", "name": "Ittoqqortoormiit", "location": { "lat": 70.4856, "lon": -21.9629 }, "countryName": "Greenland", "iata": null, "rank": 2048, "countryId": "GL", "dest": null, "airports": [ "CNP", "OBY" ], "images": [], "popularity": 5.00001, "regId": "northern-america", "contId": "north-america", "subId": null, "terId": null, "con": 1, "km": 8190 }, { "id": "FEN", "name": "Fernando de Noronha", "location": { "lat": -3.85763, "lon": -32.429737 }, "countryName": "Brazil", "iata": null, "rank": 92, "countryId": "BR", "dest": "g616328", "airports": [ "FEN" ], "images": [], "popularity": 6.463160913529116, "regId": "southern-america", "contId": "south-america", "subId": null, "terId": null, "con": 2, "km": 11755 } ]