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 .
-
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
andPOST
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 theApache HTTP
client or theREST Client
provided by your third party provider.
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
then you need to enable the Google Calender API
and Distance Matrix API
{
"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"
]
}
}