[Openstreetmap-dev] xmlrpc api problems

Jo Walsh jo at frot.org
Sun Apr 24 12:34:26 BST 2005


I keep getting java exceptions from the XMLRPC API when trying to add
a point. 
xmlrpclib.Fault: <Fault 0: 'java.lang.NoSuchMethodException:
double, double, double, int, double, double, int, int, int)'>

I looked in
and couldn't see an addPoint defined though there's one on

that is as far as i go in java; below's the python i am using to

fetching points from the API seems to work fine though i get a lot of
points with a segment id of -1

jo at frot:~$ cat xmlrpc_test.py 
import xmlrpclib
import time

lat = 51.511440
lon = -0.028653
t = time.time()
track = 0001
xmlrpc = xmlrpclib.Server('http://www.openstreetmap.org/api/xml.jsp')
token = xmlrpc.openstreetmap.login('zool at frot.org','bollocks')
print token
status = xmlrpc.openstreetmap.addPoint(token,lat,lon,0.0,int(t),-1.0,-1.0,int(track),255,255)
print status

More information about the dev mailing list