made the name lookup to coordinates function return a json object