[OSM-dev] GPX-Upload via API

Tom Hughes tom at compton.nu
Tue Jul 3 08:31:25 BST 2007


In message <4689F871.7010704 at gmx.de>
        Jan Baumgarten <JanBaumgarten at gmx.de> wrote:

> Tom Hughes schrieb:
>
>> The problem is that you have a "." in both your filename and your
>> description. Unfortunately rails can't cope with that so you will
>> need to use a different name and description.
>
> I replaced the "." with "-" and now it works.

Great. I think we may need to rethink the API though as passing
those arguments as URL components does restrict them rather badly.

>> Oh, and I don't think public=no will do what you expect. It won't
>> mark the trace as private, it will add public=no as a tag for the
>> trace.
>
> No, it doesn't do what I want. But it seems that I have to add something 
> because an URL without a tag also results in "404 Not Found". Now I 
> wonder what I should add there as a default. Is there some List with 
> tags that make sense to add to an GPX-File?

Tags can be anything - they're just a way of relating traces. So
people often use the name of the town or country where the trace
was made for example.

It will split the provided tag string on whitespace (obviously encoded
as %20 or + in the URL) and add each word as a tag for the trace.

Tom

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




More information about the dev mailing list