Update Rest.java

I have updates the getLocations from my location but im not really sure
how to finish that part.
Restore Rest.java

I had changed Rest.java and now i have restored to original version