[OSM-talk] GPX upload via API

Tom Hughes tom at compton.nu
Fri Aug 17 00:13:36 BST 2007


In message <yekr6m392nm.fsf at dellow.uk.cyberscience.com>
          Tom Hughes <tom at compton.nu> wrote:

> In message <8b65902a0708160330n16624587kd4b4b25730a54d56 at mail.gmail.com>
>         Guilhem Bonnefille <guilhem.bonnefille at gmail.com> wrote:
> 
> > I'm not aware with HTTP protocol, but why not use a POST request for
> > uploading GPX traces? Or perhaps, PUT method allows parameters, like
> > POST (I really don't know, but I'm surprised it is not possible).
> 
> That would be the sensible way to do it - the current technology
> was not something I wrote. I inherited it and I suspect that nobody
> had ever tried to use it until very recently.

OK. It's a now a POST interface, and the URL is just a simple:

  /api/0.4/gpx/create

The parameters to POST are description, tags, public and file (which
is the actual contents of the file).

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the talk mailing list