# Geocoding and XMLRPC

**URL:** <https://www.ruby-forum.com/t/geocoding-and-xmlrpc/136676>\
**Category:** Rails\
**Created:** [May 5, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/geocoding-and-xmlrpc/136676 "2008-05-05T13:45:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 5, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/geocoding-and-xmlrpc/136676/1 "2008-05-05T13:45:25Z")

</div>

Hello people,

I’m implementing a geocoding feature in my web app, a classic feature,  
for showing registered user by location.

For this purpose, I’ve inspired myself from the following tutorial :

[http://earthcode.com/blog/2006/04/rails\_geocoding\_and\_google\_map.html](http://earthcode.com/blog/2006/04/rails_geocoding_and_google_map.html)

However, I’m getting this error from Rails :

uninitialized constant SandboxController::XMLRPC

Being a newbie to rails and webservices, I can’t figure out how to  
solve this.

Can anyone help ?

Regards,

Joel

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 5, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/geocoding-and-xmlrpc/136676/2 "2008-05-05T13:58:18Z")

</div>

On 5 May 2008, at 12:44, joel wrote:

> However, I’m getting this error from Rails :
> 
> uninitialized constant SandboxController::XMLRPC
> 
> Being a newbie to rails and webservices, I can’t figure out how to  
> solve this.

Sounds like you’re just missing  
[http://ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/Client.html](http://ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/Client.html)

Just require that library and you should be ok.

Fred

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [March 16, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/geocoding-and-xmlrpc/136676/3 "2009-03-16T14:19:06Z")

</div>

Frederick C. wrote:

> On 5 May 2008, at 12:44, joel wrote:
> 
> > However, I’m getting this error from Rails :
> > 
> > uninitialized constant SandboxController::XMLRPC
> > 
> > Being a newbie to rails and webservices, I can’t figure out how to  
> > solve this.
> 
> Sounds like you’re just missing  
> [http://ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/Client.html](http://ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/Client.html)
> 
> Just require that library and you should be ok.
> 
> Fred

Its working when u give the statement

require ‘xmlrpc/client’

before the server call to the xmlrpc in the controller.

I got this the latitude and longtitude values of the address in the  
xmlrpc  
but how to do with in the html pages, and how to get the values for the  
address from db.

thanks
