/location-validator-app

Validates store location with Google map api

Primary LanguagePython

README

For a given Shopping Store, the app scraps the website and collects the addresses of all store locations of all cities in India. The address is stored in a Relational Database and validates each location with location on Google Maps and flags the incorrect location by validating with Google Map API. The application exposes an API endpoint /result which outputs the list of invalid store addresses.

Techs Used

  1. Beautifulsoup - For scrapping the Web and store the addresses
  2. Django - Backend Service and REST API
  3. MySQL - Database Storage

Running the application

  1. Clone the repository location-validator-app
  2. Go to directory location-validator-app
  3. Install Requirements - pip3 install requirements.txt
  4. Run the application python3 ./location_validator/start.py

API Endpoint

  1. The API endpoint is http://127.0.0.1:8000/result is a GET method.

Input and Output

  1. The API call is made to http://127.0.0.1:8000/result
  2. The output is returned as a JSON object of invalid location.

Tests

Test Case 1

INPUT:
OUTPUT: RESULT: PASS

Demo