[Merkaartor] using alternate servers

Shaun McDonald shaun at shaunmcdonald.me.uk
Sun Sep 5 21:38:06 BST 2010


On 5 Sep 2010, at 12:28, Chris Browet wrote:

> 
> On Sun, Sep 5, 2010 at 08:53, Shaun McDonald <shaun at shaunmcdonald.me.uk> wrote:
> 
> On 5 Sep 2010, at 03:34, Chris Browet wrote:
> 
>> There is only room to enter an address (the "Website" label in 0.16 is wrong), so "api.secretosm.org" in your case.
>> Indeed, the "/api/0.6" is hardcoded and I didn't implement the "capabilities" protocol.
> 
> The capabilities call gives some other information, which could be useful, such as the area and maximum number of waynodes, the timeout period, and most importantly the changesets max elements. You ideally should have these 4 items as variables, as someone else may have good reason to have it set differently on their system for whatever reason. It would mean that you could give a nice error message rather than a 404 if the api version is upgraded on the server.
> 
> Sure. I just somewhat overlooked that when migrating  to 0.6 (or was it a late addition?).

The capabilities call has been there from before I started working on the code if I remember right. I made the change such that it would no longer require the api version, and increased it's importance.

> 
>> 
>> (and its not secretosm, just in case you think so)
>> I'll trust you on this one. As for myself, pinging "api.secretosm.org" give me a "host not found". 
>> 
>> At 0.5->0.6 time, I used both the prod 0.5 and test 0.6 servers and it was working, but it could have become broken since... I'll retest with the test server if it is still alive.
>> 
>> Please submit an issue for the "multiple servers" requests, and another one for "Url rather than host".
> 
> Why not have Merkaartor auto correct or suggest to the user that they should drop the /api or /api/version if they have included it?
> 
> The question is more whether the "api" part is actually fixed or whether it could change depending the implementations. 
> For playing it safe, I'll probably ask the full URL up  to "version" with a 4 servers history, and with the current system as a fallback when only a hostname is given.

I'd also add an option to revert to the default button. It is recommended to use http://api.openstreetmap.org/api so that in the future the appropriate load balancing can be done at the dns/network level.

It's up to you whether you require or make optional the /api.

Shaun

> 
> On a side note, as this request is obviously linked to the license change, I'm not a fan of the ODbL myself, so I'll be supportive of specific needs any fork/implementation might have.
> 
> Regards
> - Chris -
> 
> 
> _______________________________________________
> Merkaartor mailing list
> Merkaartor at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/merkaartor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/merkaartor/attachments/20100905/058f0ab4/attachment.html>


More information about the Merkaartor mailing list