GithubHelp home page GithubHelp logo

ehtiramabdullayev / calendar-notification-services Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 64 KB

Destination and time to arrive from the location of the user and the location of the event.

Java 100.00%
calendar distance-calculation events google-api google-calendar-api google-maps-api java-8 location

calendar-notification-services's Introduction

Objective

The project use the Google calendar API to get the user event and read the location of the event and give to waze service or google map to get the destination and time to arrive from the location of the user and the location of the event .


Challenge

  • Design the Controller and Model classes required for the atomic and composite services .

  • Implementing your composite and atomic service code. At this stage you need to start actually implementing the code inside your GET and POST methods. Here you can write Java code that invokes model classes and other controllers locally inside the project code. But you should also show how you invoke third party APIs through the Apache HTTP client or the REST Client provided by your third party provider.

Solution

You need to create a simple cloud application first ( developers.google to create account and create project in google cloud), After that you'll need to download your credentials.json file

Pasted File at December 18, 2018 1_08 AM

then you need to enable the Google Calender API and Distance Matrix API

Pasted File at December 18, 2018 3_17 PM


http://localhost:8282/getDistanceOfGivenEventById?eventId=cctoe6olq0hc3jl35rmq2ds95o&origins=Budapest,Hungary&mode=ride

{
  "summary": "Test 897987564",
  "location": "Belgrade, Serbia",
  "description": "Test 14 Rome",
  "id": "cctoe6olq0hc3jl35rmq2ds95o_20181218T200000Z",
  "distanceResponse": {
    "status": "OK",
    "rows": [
      {
        "elements": [
          {
            "duration": {
              "text": "3 hours 46 mins",
              "value": "13550"
            },
            "distance": {
              "text": "379 km",
              "value": "378532"
            },
            "status": "OK"
          }
        ]
      }
    ],
    "origin_addresses": [
      "Budapest, Hungary"
    ],
    "destination_addresses": [
      "Belgrade, Serbia"
    ]
  }
}

calendar-notification-services's People

Contributors

dependabot[bot] avatar ehtiramabdullayev 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.