Code Monkey home page Code Monkey logo

geocoding-app's Introduction

GitHub License

Geocoding App

This is a Geocoding app capable of both forward and reverse geocoding i.e. converting a textural address to geographical coordinates and converting geographical coordinates to its respective textural address respectively.
This app aims to implement geocoding using Opencage Geocoding API to set the groundwork for real-world use cases like Geotagging media, Transportation and many more.

Technologies Used :

  • Python - Used this because of its vast library and ease of implementation of GUI using TKinter and requests library for API.
  • SQLite - Used this for its hassle-free implementation without worrying about setting up an SQL server.

This app is still in its early stages. More features like exporting the history in a DSV file format, preferably TSV (Tab-Separated Values) as commas are already being used between coordinates could be implemented.

How to run the project

To run this project, you must install the necessary dependencies for setting up the environment.
(NOTE: Make sure to check the Requirement.txt file to see the supported versions.)

  1. Download Python. visit: https://www.python.org/downloads/ and download the version as per your choice.
  2. Install Python using the downloaded installer. The installation guide for your Operating System can be found on Python docs.
  3. Install the requests library using the pip command as follows:
    pip install requests
    This should install the latest version of the requests library on your system. If you already have requests library on your system, please make sure that you satisfy the version criteria. Otherwise, consider updating the library.
  4. Clone this repo to your system.
  5. Create an account on OpenCage by visiting https://opencagedata.com and going for signup.
  6. Go to your dashboard, and click on the "Geocoding API" heading. Go ahead and click on the "Create another API key" button under the "Your API Keys" Section.
  7. Copy the API key and Paste it inside the geocoding_main.py file in place of the "YOUR API KEY" text. Make sure to keep the pair of quotes.
  8. After navigating to the project directory on your system terminal/Command Prompt, run the application.py file using python application.py command.

Congratulations!!! The app is now running. 🥳🥳🥳

How to use the Project

The Project is divided into multiple files each file is responsible for a specific part of the program. The part each file plays are described below:

  • geocoding_main.py - This file defines the essential geocoding functionality by defining functions. You can import this file into other projects and start performing the geocoding. Note: Catch Exceptions after implementation for bad responses with appropriate messages.
  • application.py - This file is the main GUI implementation of the project. It holds the main screen of the program and is responsible for implementing other methods and files.
  • History_Screen.py - Holds the GUI for the History Screen.
  • dbConnector.py - This defines the necessary codes for building an SQLite DB for storing the queries made. This holds functions for inserting and deleting the data from the DB. This also contains a function for completely clearing the DB (use carefully).
  • SQLiteDB/geocoding_data.db - This is the actual Database that holds the data.

You can use this for other projects by importing the files you need for your project.

Screenshots


Forward Geocoding Page


Reverse Geocoding page


History Page

License

This is an MIT-licenced Project for more details see the LICENCE file.

geocoding-app's People

Contributors

syedsadiquh avatar

Stargazers

 avatar

Watchers

 avatar

geocoding-app's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.