Skip to content

somiljain7/location-geo-api

Repository files navigation

An API endpoint, which returns data related to geolocation.

  • POST URL: http://127.0.0.1:5000/api/v1/getAddressDetails

  • File Structure:

    1.  flask-api.py --> MAIN FLASK FILE
      
    2.  api_bp.py --> blueprint for routing and etc
      
    3.  api_python.py --> script for dealing with request json 
      
    4.  get_address_details.py --> calling of api endpoints
      

Example

Request:
{
"address" : "# xxxxxxxxxxxxxxxxxx,Bengaluru, Karnataka 560008" ,
"output_format" : "json"
}

Response:
{
    "Data": {
        "address": "xxxxxxxxxxxxxxxxxx,Bengaluru, Karnataka 560008",
        "coordinates": {
            "lat": 4412.9658286,
            "lng": 7447.63948169999999
        }
    },
    "Message": "Successfull",
    "status": true
}
  • By - SOMIL JAIN

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages