cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Add GPS data to REST API #802

Closed zebroc closed 5 years ago

zebroc commented 6 years ago

Hi. Thanks for this great plugin first of all!

I see that you put GPS data into the RSS feed, which is awesome.

Do you think it is possible to add the data to the output of the REST API as well?

As in, here: https://www.cyberhobo.net/wp-json/wp/v2/posts/

cyberhobo commented 6 years ago

I like the idea, I'll take a closer look for 1.11.0.

zebroc commented 6 years ago

I wrote a tiny plugin for this for now: https://github.com/zebroc/geomashup2api

aerdemsenturk commented 5 years ago

Hi, How can I make GPS Data visible in REST API for a Custom Post Type? Currently It works only Posts and Comments.

Thank you.

cyberhobo commented 5 years ago

True, it should honor the post types enabled in the settings, but does not currently.