make the location api restful as fuuuuhhhhhh