[OSM-dev] Uploading traces to the API
Tom Hughes
tom at compton.nu
Tue Nov 13 10:57:25 GMT 2007
In message <c72329f00711130234t7960da3dte014d0d31d08cef9 at mail.gmail.com>
David Dean <ddean at ieee.org> wrote:
> Can I get some help in uploading some gpx files through the api. All I
> seem to get is a non-helpful error message.
>
> curl -u XXXXX:XXXX -F
> gpx_file=@/home/david/docs/SDCARDMirror/NaviPOWM/Save/2007111100.txt
> -F description=2007111100.txt -F tagstring="navipowm" -F public=1
> http://openstreetmap.org/api/0.5/gpx/create
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <body>
> <h1>Application error</h1>
> <p>Change this error message for exceptions thrown outside of an
> action (like in Dispatcher setups or broken Ruby code) in
> public/500.html</p>
> </body>
> </html>
>
> What am I doing wrong?
The tags parameter is called "tags" not "tagstring", and the file
parameter is called "file" not "gpx_file".
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list