Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce Geo-Annotations form Instagram Posts containing Geo-Information #10

Open
mdornseif opened this issue Oct 26, 2013 · 1 comment
Assignees

Comments

@mdornseif
Copy link

Currently I maintain http://im-fluss.appspot.com to transfer geo data from Instagam to ADN posts. The resulting posts look like https://alpha.app.net/peter_hacker/post/13376289

The relevant code looks like this (complete code here:

    media, next = instagram_client.user_recent_media()
    for image in reversed(media):
        if hasattr(image, 'location') and hasattr(image.location, 'point') and image.location.point:
            # handle geolocation information
            post['annotations'].append(
                dict(type='net.app.core.geolocation',
                     value=dict(latitude=image.location.point.latitude,
                                longitude=image.location.point.longitude)))

Adding geolocation support to pour over would help to promote the use of annotations and show how feature rich bridges can be.

I have not oriented me in the pour over codebase very much, but it seems models. InstagramFeed .process_feed(), models.Entry and poster.instagram_format_for_adn would need updating.

@voidfiles
Copy link
Member

this is a good idea, and I will implement it when I get a chance. If you had the time to put together a pull request that would make things easier.

@ghost ghost assigned voidfiles Oct 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants