473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to send XML Rquest to http://geocoder.us/

JK
Can anyone provide me with an ASP 2.0 example of how to call the geocoder
service. They provide the following perl example for XML-RPC :

#!/usr/bin/perl

use XMLRPC::Lite;
use Data::Dumper;
use strict;
use warnings;

my $where = shift @ARGV
or die "Usage: $0 \"111 Main St, Anytown, KS\"\n";

my $result = XMLRPC::Lite
-> proxy( 'http://rpc.geocoder.us/service/xmlrpc' )
-> geocode( $where )
-> result;

print Dumper $result;

Sep 21 '05 #1
6 3038
"JK" <ji******@hotmail.com> wrote in message
news:OS**************@TK2MSFTNGP14.phx.gbl...
Can anyone provide me with an ASP 2.0 example of how to call the geocoder
service. They provide the following perl example for XML-RPC :

#!/usr/bin/perl

use XMLRPC::Lite;
use Data::Dumper;
use strict;
use warnings;

my $where = shift @ARGV
or die "Usage: $0 \"111 Main St, Anytown, KS\"\n";

my $result = XMLRPC::Lite
-> proxy( 'http://rpc.geocoder.us/service/xmlrpc' )
-> geocode( $where )
-> result;

print Dumper $result;


Below are three forms using just HTML.
Of course, it could be converted to ASP.

<html>
<head>
<title>geocoder.htm</title>
</head>
<body>
<b>geocoder.us -- find the latitude & longitude of any US address</b>
<hr>
Username and Password not required for the demo.
<br>
<form action="http://rpc.geocoder.us/demo.cgi" method="post">
<input type="text" name="address" size="50"
value="1600 Pennsylvania Ave, Washington, DC">
<input type="submit" value="Submit">
</form>
<hr>
Username and Password not included but will be requested..
<br>
<form method="post"
action="http://geocoder.us/member/service/xmlrpc">
<input type="text" name="geocode" size="50"
value="1600 Pennsylvania Ave, Washington, DC">
<input type="submit" value="Submit">
</form>
<hr>
Username and Password included but must be changed to yours.
<br>
<form method="post"
action="http://Username:Pa******@geocoder.us/member/service/xmlrpc">
<input type="text" name="geocode" size="50"
value="1600 Pennsylvania Ave, Washington, DC">
<input type="submit" value="Submit">
</form>
<hr>
</body>
</html>

The last one (even with the made up Username and Password)
opens a page which states:

geocoder.us
find the latitude & longitude of any US address - for free
----------------------------------------------------------------------------
----
Payment Required
Your account does not have sufficient credits to use this feature.
Please visit your account page to purchase more credits.

I guess "free" does not mean "free"!
Sep 21 '05 #2
"JK" <ji******@hotmail.com> wrote in message
news:OS**************@TK2MSFTNGP14.phx.gbl...
Can anyone provide me with an ASP 2.0 example of how to call the geocoder
service. They provide the following perl example for XML-RPC :

#!/usr/bin/perl

use XMLRPC::Lite;
use Data::Dumper;
use strict;
use warnings;

my $where = shift @ARGV
or die "Usage: $0 \"111 Main St, Anytown, KS\"\n";

my $result = XMLRPC::Lite
-> proxy( 'http://rpc.geocoder.us/service/xmlrpc' )
-> geocode( $where )
-> result;

print Dumper $result;


Do you need the map or just the data?

The following will return the CSV (Comma Seperated Values) result:
38.898748,-77.037684,1600 Pennsylvania Ave NW,Washington,DC,20502

<html>
<head>
<title>geocoder.htm</title>
</head>
<body>
<b>geocoder.us -- find the latitude & longitude of any US address</b>
<hr>
Username and Password not required.
<br>
<form action="http://rpc.geocoder.us/service/csv" method="post">
<input type="text" name="address" size="50"
value="1600 Pennsylvania Ave, Washington, DC">
<input type="submit" value="Submit">
</form>
<hr>
</body>
</html>

Sep 21 '05 #3
JK
Thanks for the reply. Alas, i do need the ASP code to get this working - not
HTML

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:P9********************@comcast.com...
"JK" <ji******@hotmail.com> wrote in message
news:OS**************@TK2MSFTNGP14.phx.gbl...
Can anyone provide me with an ASP 2.0 example of how to call the geocoder
service. They provide the following perl example for XML-RPC :

#!/usr/bin/perl

use XMLRPC::Lite;
use Data::Dumper;
use strict;
use warnings;

my $where = shift @ARGV
or die "Usage: $0 \"111 Main St, Anytown, KS\"\n";

my $result = XMLRPC::Lite
-> proxy( 'http://rpc.geocoder.us/service/xmlrpc' )
-> geocode( $where )
-> result;

print Dumper $result;


Do you need the map or just the data?

The following will return the CSV (Comma Seperated Values) result:
38.898748,-77.037684,1600 Pennsylvania Ave NW,Washington,DC,20502

<html>
<head>
<title>geocoder.htm</title>
</head>
<body>
<b>geocoder.us -- find the latitude & longitude of any US address</b>
<hr>
Username and Password not required.
<br>
<form action="http://rpc.geocoder.us/service/csv" method="post">
<input type="text" name="address" size="50"
value="1600 Pennsylvania Ave, Washington, DC">
<input type="submit" value="Submit">
</form>
<hr>
</body>
</html>

Sep 21 '05 #4
http://www.aspfaq.com/show.asp?id=2173

JK wrote:
Thanks for the reply. Alas, i do need the ASP code to get this
working - not HTML

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:P9********************@comcast.com...
"JK" <ji******@hotmail.com> wrote in message
news:OS**************@TK2MSFTNGP14.phx.gbl...
Can anyone provide me with an ASP 2.0 example of how to call the
geocoder service. They provide the following perl example for


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 21 '05 #5
"JK" <ji*************@hotmail.com> wrote in message
news:#a**************@TK2MSFTNGP15.phx.gbl...
Thanks for the reply. Alas, i do need the ASP code to get this working - not HTML
[snip]

What do you need ASP code for:
1) Submitting the form and/or
2) Retrieving the results?

How is the "address" entered in the form:
manually by the user or from a database or ...?

What do you want to do with the results?

Also, you didn't answer my question (below).
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:P9********************@comcast.com...
Do you need the map or just the data?

The following will return the CSV (Comma Seperated Values) result:
38.898748,-77.037684,1600 Pennsylvania Ave NW,Washington,DC,20502

Sep 21 '05 #6


JK wrote:
Can anyone provide me with an ASP 2.0 example of how to call the geocoder
service. They provide the following perl example for XML-RPC :


I have done some search for VBScript and XML-RPC and have found the
following:
<http://planetsourcecode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?txtCriteria=XML% 2DRPC&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntr iesPerPage=10&blnResetAllVariables=TRUE&lngWId=4&B 1=Quick+Search&optSort=Alphabetical>

I have not looked at the code at all so you need to download and check
out yourself whether it works for your purpose.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Sep 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to...
15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
5
by: mark kurten | last post by:
i have a requirement to send a soap message to a web service. i'm familiar with the soap toolkit using vb. i need to generate a xml document which i think i can do, but i don't know how to...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
3
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could...
1
by: michi | last post by:
Hi there.... Got here a tricky thing with my SMTP. First I show you what works on my machine.. **This Works** SmtpMail.SmtpServer = "mail.gmx.net" <-gmx is my mail provider...
1
by: Olav Tollefsen | last post by:
I have looked at the various attributes of the HttpRequest class, but I didn't find an attribute to return the directory path to the current request. Given the URL...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
1
by: brendwal | last post by:
Hi, I am stumped at how to do this: I have a simple webform that I want the user to enter one value (an address). I then want the form to send those values to a PHP script that processes the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.