api for maps using ruby on rails