Skip to content

Latest commit

 

History

History
executable file
·
150 lines (57 loc) · 2.51 KB

File metadata and controls

executable file
·
150 lines (57 loc) · 2.51 KB

Reverse Geolocating Rest Api With Spring Boot

License: MIT

A simple web app providing Rest api for reverse geolocating the provided coordinate. It is a spring boot project using spring web starter pack. The embedded server is tomcat. Any other embedded server can be used as well. Works Offline.

Install

  
sudo apt update  
  
sudo apt install openjdk-14-jdk-headless maven  
  
git clone https://github.com/roshanlc/reverse-geolocating-rest-api-spring-boot.git  
  
cd reverse-geolocating-rest-api-spring-boot  
  
mvn clean package  
  
java -jar target/reversegeolocator-0.0.1-SNAPSHOT.jar --server.port=8080  
  
    

Usage

Usage with curl on bash shell

Documentation

Documentation is available on /docs endpoint

Method Endpoint Parameters Response Demo
GET /locate lat
lon
Returns json format location details /locate?lat=65.654&lon=54.35
GET /docs Returns this documentation /docs

Libraries Used

Author

👤 Roshan Lamichhane

Show your support

Give a ⭐️ if you liked this project !