Code Monkey home page Code Monkey logo

opensourcegis_06's Introduction

OpenSourceGIS - Exercise 6: Open Route Service and Ohsome API

In this exercise, you will learn how to use the Open Route Serice and Ohsome APIs using Python. Therefore, we need to set up the right python environment.

Setting up the Python environment

  1. Open the "Anaconda Prompt" from the Windows Menu.
  2. Navigat to the folder "env" of this repository.
  3. Create a new virtual environment:

conda env create -f ors_environment.yml

If you are asked to provide Admin credentials, just click 'No'.

  1. Activate the new virtual environment:

activate ors

If you successfully activated your new environment command prompt should look something like this with the name of the activate environment (ors) in brackets in front of your current path:

(ors) M:\git\OpenSourceGIS_06\env>

  1. Install the openrouteservice and geopy packages

pip install openrouteservice ortools geopy

Starting the jupyter notebook

In this exercise, we will use juypter notebook to work with Python. Here are the steps to start the jupyter notebook.

  1. Make Firefox or Chrome your default Web Browser: For instructions on how to do that, see here.

  2. Open the "Anaconda Prompt" and move to the main folder of this repository.

  3. Activate the 'ors' Python environment: activate ors

  4. Start the Jupyter notebook server: jupyter notebook

Your browser should open automatically directing you to localhost:8888/tree where your jupyter notebook server is running.

Closing the jupyter notebook

  1. Close the browser tabs
  2. In the "Anaconda Prompt" with your running jupyter notebook server, press CTRL + C to abort the process.

opensourcegis_06's People

Contributors

redfrexx avatar

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.