Opened 8 years ago

Last modified 5 years ago

#3744 new enhancement

oEmbed Support

Reported by: bloodyalbatross Owned by: rails-dev@…
Priority: trivial Milestone:
Component: api Version:
Keywords: Cc:


I think it would be really great if Open Street Map would support the oEmbed API ( It should be really easy to implement. I have implemented a demo in pure JavaScript? here:

OSM should then provide an oEmbed endpoint like this:

Where FORMAT is "json" or "xml". Of course the JavaScript? example only implements JSON (and needs the JSON object supported by the browser).

Note that the JavaScript? does not support OSM shorturls because a simple port of the ruby OSMShortLink module does not work in JavaScript?. This is because JavaScripts? number type is double which is only compatible with 32bit integers and here 64bit integers are needed. The OSM endpoint should support shorturls nevertheless.

Once this is supported OSM should request to be added to oEmbed registries like or

Change History (4)

comment:1 Changed 8 years ago by TomH

The big problem with adding this at the moment is the need to generate thumbnail images - the MapOf? call your example code uses is not suitable for production use as it is running on a dev server and works by tile stitching which isn't ideal.

To be honest though, what's the benefit to us? I've never heard of oembed until now which suggests it doesn't have much traction. I can see lots of high profile providers listed on the web site, but virtually no consumers, an certainly none that I have ever heard of...

comment:2 Changed 7 years ago by TomH

  • Owner changed from tom@… to rails-dev@…

comment:3 Changed 7 years ago by mattsches

I can see the problems with the implementation above, but I don't see that there's still a lack of potential consumers. Especially since blog software and CMSes like Wordpress support oEmbed. Actually, the number seems to be increasing.

I co-authored the GeoTag? plugin for the Serendipity blog software (adding OSM support) and helped with the oEmbed plugin.

If there is a service by now that generates thumbnail images for third-party use (and that's not on a dev server), I'd really like to know, so we could pursuit this idea further.

comment:4 Changed 5 years ago by !i!

I understand the problem and accept that this focus very much just on the consumer-perspective on USING OSM created maps.

On the other hand, why not just starting with that and adding a server for such kind of renderings? If this get's slammed down, we can thinking about skipping this feature, or to use distributed computing (VC, donated cloud, ...) to realize or to skip it?

Note: See TracTickets for help on using tickets.