JK said:
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:
umper;
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:[email protected]/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"!