This API can be use to all developers to get location details of Sri Lanka 🇱🇰 including major cities, sub areas, districts and Provinces. ⛳️
Developers can use this API to get datails of cities, districts and provinces which located all around the Sri Lanka. This API can easily intergarte to you appication using particular URI.
https://locatesrilanka.herokuapp.com/cities
https://locatesrilanka.herokuapp.com/provinces
https://locatesrilanka.herokuapp.com/districts
https://locatesrilanka.herokuapp.com/cities/cordinates/[CITY NAME IN ENGLISH]
Assume user needs to find GPS cordinates of Kadduwela, Sri Lanka
https://locatesrilanka.herokuapp.com/cities/cordinates/Kaduwela
https://locatesrilanka.herokuapp.com/cities/cordinates/[DISTRICT ID]
Assume user needs to find GPS cordinates of Colombo District, Sri Lanka
https://locatesrilanka.herokuapp.com/cities/byDistrict/5
https://locatesrilanka.herokuapp.com/cities/colombo_mca/[COLOMBO SUB AREA]
Assume user needs to find details of Colombo 1, Sri Lanka
https://locatesrilanka.herokuapp.com/cities/colombo_mca/1
https://locatesrilanka.herokuapp.com/cities/colombo_mca
https://locatesrilanka.herokuapp.com/districts/byprovince/[PROVINCE ID]
Assume user needs to find districts in western province, Sri Lanka
https://locatesrilanka.herokuapp.com/districts/byprovince/1
https://locatesrilanka.herokuapp.com/districts/districtcount/[PROVINCE ID]
Assume user needs to find count of districts in western province, Sri Lanka
https://locatesrilanka.herokuapp.com/districts/districtcount/1
git clone https://github.com/PasinduS96/location-api-sl.git
npm install
PORT=
MONGO_URI=
npm start
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)MIT © PasinduS96