I have created a simple demo application that was deployed on cloudfoundry cloud.
Cloudfoundry is a cloud service provider and currently supports Ruby, Spring applications. It also supports MySQL and MongoDB.
Cloudfoundry is a cloud service provider and currently supports Ruby, Spring applications. It also supports MySQL and MongoDB.
The demo app OFFICE
LOCATOR
shows the office and emplyee's location as markers on
google map.
The
initial data (employee and office address) was hard coded in a txt
file as JSON string.
The
application is deployed on cloudfoundry at the below location :
There
is a menu in the left hand side of the page as shown below.
The
menu shows two options.
1)
View Map
2)
View Distance
By
default, when you load the page, the map will be shown.
In
this page, the user can submit a new office. Then , the map will be
updated with new and old offices.
Old
office will be shown in "green" color and new office will
be shown in "yello" color marker, while employees will be
marked with "blue" color marker.
If
users selects the second option in the menu ("view Distance"
link), it will show a table with Employee name, address, distance
from his address to new office and old office.The last column shows
the difference
in
the distance betwen new and old offices.
At
the end,in the last row, it will show the average difference of
distance of all employee's address.
Note
:
Zoom in/out to see all the employee's address and old/new office locations.