Skip to content

agrison/MonMet

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MonMet

MonMet

MonMet is a free mobile application that let user saves the time tables of his favorite bus stops and have a quick look on them whenever he wants.

The application is composed of:

  • A mobile application using ionic framework
  • A backend using spring boot and redis.

Screenshots

Home page Bus stop view

Dependencies

  • Java 8
  • Maven 3+
  • Redis
  • ionic framework
  • Tesseract (brew install tesseract) + Tesseract4j
  • GhostScript (brew install ghostscript)

Running the Backend

Run redis

redis-server

Init redis

cat src/main/resources/init.redis | redis-cli -x

Run the backend

mvn package
nohup java -jar target/MonMet*.jar &

Run the app on your computer

cd MonMet && ionic serve

Run the app on your device

cd MonMet && ionic run android
or
cd MonMet && ionic run ios

REST API

Method Path Description
GET /api/lines Get the available lines bus lines.
GET /api/lines/{lineId} Get the available heads (directions) for a specific line
GET /api/lines/{lineId}/{head} Get the available stops for a specific line and head
GET /api/tt/{lineId}/{head}/{stopId}?stopName={stopName} Get the timetable for a specific line, head and stop
GET /api/coords/{lineId}/{stopName} Get the coordinates for a specific stop of a bus line.

Sample JSON

GET /api/lines

{
    "Mettis": [
        {
            "id": "998",
            "name": "A",
        },
        {
            "id": "999",
            "name": "B",
        }
    ],
    ...
}

GET /api/lines/{lineId}

[
    "CITE U",
    "MATERNITE",
    ...
]

GET /api/lines/{lineId}/{head}

[
    {
        "id": "21327",
        "name": "REPUBLIQUE",
    },
    {
        "id": "31329",
        "name": "CITE U",
    },
    ...
]

GET /api/tt/{lineId}/{head}/{stopId}?stopName={stopName}(&timestamp={timestamp})

{
    "week": [
        "05:18",
        "05:36",
        "06:10",
        "06:28",
        "06:43",
        ...
    ],
    "saturday": [
        "05:18",
        "05:36",
        "06:06",
        "06:36",
        ...
    ],
    "sunday": [
        "05:18",
        "06:36",
        "07:12",
        "08:05",
        "08:35",
        ...
    ],
    "nextRides": [
        "19:06",
        "19:16",
        "19:26"
     ]
}

GET /api/coords/{lineId}/{stopName}

{
    "lat": 49.121565,
    "lon": 6.175176
}

About

Sauve les horaires du Met' à tes arrêts, consulte-les facilement.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published