Giter VIP home page Giter VIP logo

mojazastavka_api's Introduction

Moja Zastávka

API and main repository

You are in a new city with the intention to visit some particular building or visit shopping center for example. Ok, so what if your destination point is on the opposite side of this big city? You probably want to use public city transport to get there. But the question is: "Which bus/tram is right and where should I get off?" The answer is Moja Zastávka.

Tech stack

Example of stops resource URL

In database is currently more than 3500 stops that covers top 10 greatest Slovak cities

API Endpoint

Current version prefix is /api/v2

/find/stops?[stops_params] - finds stops according to given params
/find/departures?[departures_params] - finds 3 nearest departures for given stop
/cities - list of cities in DB

where stops_params are:

start[name] - optional if lat and lng are provided
start[lat] - optional
start[lng] - optional

destination[name] - optional if lat and lng are provided
destination[lat] - optional
destination[lng - optional

city - optioal, defines city, when city is filled in, start and destination address may be without this city
count - optional, default 3, defines count of stops you want to fetch in nearby of the point
directions - optional, default true, enables loading directions for every stop to show polyline in map

departures_params:

start - name of start stop
destination - name of destination stop
city - city name
time - optional, in format *HH:MM d.m*

Examples of valid URL:

http://mojazastavka.jozefcipa.com/api/v2/find/stops?start[lat]=48.99123119&start[lng]=21.2459537&destination[lat]=48.998669&destination[lng]=21.22763914&count=3

or

http://mojazastavka.jozefcipa.com/api/v2/find/stops?city=Prešov&start[name]=SPŠE&destination[name]=Na%20Hlavnej&directions=false

©2016-2017 Jozef Cipa & OMA Slovakia

This project uses data from http://openstreetmap.org. These data are available under ODbL license.

mojazastavka_api's People

Contributors

jozefcipa avatar

Watchers

 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.