I have a database of basically x,y coordinates with meta data associated - geo tagged data. I want to serve that data via HTTP. I could just write up and document how to request data in various ways. But are there standard approaches to this problem? For example I was thinking about using a similar URL scheme to OSM's tile map server to request blocks of data - http://foo.com/{z}/{x}/{y}. This would aid in caching. Although the semantics of requesting tiles and data are slightly different. Anyway I'm just after some pointers. I can't find any documentation or case studies addressing this, but obviously its been thought about before... To make things more concrete; I have a (Mongo) database of weather stations scattered over a large geographic area. Each station has a location and a flat list of descriptive data associated with it. I want to provide a public HTTP API to that, similar to how openstreetmaps has a public tile map server. I envisage people will use Leaflet or similar to visualize this data. asked 11 Dec '14, 07:11 mapgenius323
showing 5 of 6
show 1 more comments
|
answered 11 Dec '14, 09:59 SimonPoole ♦ Thanks for the answer but I'm not finding it that helpful. Kind of like asking a question about electronics and getting "http://ieee.org" as a response... But thanks anyway.
(11 Dec '14, 21:51)
mapgenius323
Your question was: "But are there standard approaches to this problem?"
(13 Dec '14, 10:43)
SimonPoole ♦
|
Can you give more information about your intentions? How will the results be used, and by whom? What format is the data in/will the result need to be in (OSM, SHP, GPX, KML, etc.)?
Hi @alester. I have updated the question. Thanks.
Ah, a sufficient answer for me might be how OSM (http://www.openstreetmap.org) serves "notes". That is pretty much want I want to do.
Another example is switch2osm's Leaflet example - http://switch2osm.org/using-tiles/getting-started-with-leaflet/ . That has a section on "Showing markers as the user pans around the map".
@SomeoneElse: No thats not what I'm asking about.
I have problems to see anything OSM-specific here. I guess your question rather belongs to https://gis.stackexchange.com or similar sites. If you move, please mention the new link here!