Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

oEmbed Support #3744

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

oEmbed Support #3744

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: bloodyalbatross
[Submitted to the original trac issue database at 10.00am, Tuesday, 3rd May 2011]

I think it would be really great if Open Street Map would support the oEmbed API (http://www.oembed.com/). It should be really easy to implement. I have implemented a demo in pure JavaScript here:
http://web.student.tuwien.ac.at/~e0427417/osm/osm-oembed.html
http://web.student.tuwien.ac.at/~e0427417/osm/osm-oembed.js

OSM should then provide an oEmbed endpoint like this:
http://www.openstreetmap.org/export/oembed.html?url=PERMALINK&maxwidth=WIDTH&maxheight=HEIGHT&format=FORMAT

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 http://api.embed.ly/ or http://oohembed.com/.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 7.36pm, Tuesday, 3rd May 2011]

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

@openstreetmap-trac
Copy link
Author

Author: mattsches
[Added to the original trac issue at 12.32pm, Saturday, 11th February 2012]

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 [http://www.s9y.org/ 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.

@openstreetmap-trac
Copy link
Author

Author: !i!
[Added to the original trac issue at 5.29pm, Wednesday, 16th October 2013]

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?

@openstreetmap-trac
Copy link
Author

Author: mmd
[Added to the original trac issue at 2.42pm, Thursday, 28th May 2020]

Closing due to lack of relevance in 2020.

Please reopen as new Github issue, if you think this still has any relevance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant