NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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's gravatar image

mapgenius323
46347
accept rate: 0%

edited 12 Dec '14, 03:49

1

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.)?

(11 Dec '14, 23:37) alester

Hi @alester. I have updated the question. Thanks.

(12 Dec '14, 01:47) mapgenius323

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.

(12 Dec '14, 07:29) mapgenius323

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".

(12 Dec '14, 09:36) SomeoneElse ♦

@SomeoneElse: No thats not what I'm asking about.

(12 Dec '14, 23:07) mapgenius323
3

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!

(12 Dec '14, 23:20) aseerel4c26 ♦
showing 5 of 6 show 1 more comments

permanent link

answered 11 Dec '14, 09:59

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

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 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×930
×123

question asked: 11 Dec '14, 07:11

question was seen: 1,945 times

last updated: 13 Dec '14, 10:43

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum