Skip to content

jmanyas/pollution-collector-robot-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pollution-collector-robot-v2

Pollution Robot

To run the application

  • first compile and generate JAR file:

mvn clean install

  • After the JAR is generated, then run the JAR file:

java -jar .\target\pollution-collector-robot-v2-0.0.1-SNAPSHOT.jar --path="mpjyHxi@VjAVKnAh@BHHX@LZR@Bj@Ml@WWc@]w@bAyAfBmCb@o@pLeQfCsDVa@@ODQR}AJ{A?{BGuAD_@FKb@MTUX]Le@^kBVcAVo@Ta@|EaFh@m@FWaA{DCo@q@mCm@cC{A_GWeA}@sGSeAcA_EOSMa@}A_GsAwFkAiEoAaFaBoEGo@]_AIWW{AQyAUyBQqAI_BFkEd@aHZcDlAyJLaBPqDDeD?mBEiA}@F]yKWqGSkICmCIeZIuZi@_Sw@{WgAoXS{DOcAWq@KQGIFQDGn@Y@MJEFIHyAVQVOJGHgFRJBBCCSKBcAKoACyA?m@^yVJmLJ{FGGWq@e@eBIe@Ei@?q@Bk@Hs@Le@Rk@gCuIkJcZsDwLd@g@Oe@o@mB{BgHQYq@qBQYOMSMGBUBGCYc@E_@H]DWJST?JFFHBDNBJ?LED?LBv@WfAc@@EDGNK|@e@hAa@Bk@b@OEk@Go@IeACoA@a@PyB@yDDc@e@K{Bi@oA_@w@]m@_@]QkBoAwC{BmAeAo@s@uAoB_AaBmAwCa@mAo@iCgAwFg@iDq@}G[uEU_GBuP@cICmA?eI?qCB{FBkCI}BOyCMiAGcAC{AN{YFqD^}FR}CNu@JcAHu@b@_E@}DVsB^mBTsAQKkCmAg@[YQOIOvAi@[m@e@s@g@GKCKAEJIn@g@GYGIc@ScBoAf@{A@uAlBfAG`@"

The argument path contains the POLYLINE string. In the above example is the one from the PDF exercise.

Considerations

The solution uses GOOGLE MAP SERVICES in order to calculate distances between the polyline points.

It is possible to use another Distance Manager, for not using google services, for do that, just change:

application.properties -> distanceService=local

To test the REST controller you can use this POSTMAN collection

https://www.getpostman.com/collections/2ab71a7c31a532b0f62e

About

Pollution Robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages