hotosm / oam-api

A catalog for OpenAerialMap imagery
BSD 3-Clause "New" or "Revised" License
24 stars 11 forks source link

tms endpoint - can multiple URIs be provided? #61

Open mojodna opened 9 years ago

mojodna commented 9 years ago

We're passing TileJSON around the OAM server API, so we theoretically have multiple entries for tiles. It'd be nice to not lose them if possible. In the meantime, I'm grabbing the first and sending that as uri.

(Note: this is more relevant for Mapbox / other TMSes with host aliasing)

anandthakker commented 9 years ago

Good point @mojodna. I haven't spent much time in here myself, but it looks to me like the underlying schema & controller are setup to handle multiple tms uri's, but POST /tms only takes one.

Should be easy enough to allow an array for the uri parameter. @scisco or @jflasher :+1: or :-1: ?

kamicut commented 9 years ago

@jflasher @scisco I'm about to work on this, any red flags for just substituting the tms' single value with an array?

jflasher commented 9 years ago

@kamicut @scisco implemented this I believe, I don't know that I've looked into it previously.