Github user mfranklin commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/49#discussion_r14595421
  
    --- Diff: 
streams-contrib/streams-provider-instagram/src/main/java/org/apache/streams/instagram/serializer/util/InstagramActivityUtil.java
 ---
    @@ -98,7 +208,14 @@ public static void updateActivityContent(Activity 
activity, MediaFeedData item,
          */
         public static void addLocationExtension(Activity activity, 
MediaFeedData item) {
             Map<String, Object> extensions = ensureExtensions(activity);
    -        Map<String, Object> location = new HashMap<String, Object>();
    +
    +        if(item.getLocation() != null) {
    +            Map<String, Object> coordinates = new HashMap<String, 
Object>();
    +            coordinates.put("type", "Point");
    +            coordinates.put("coordinates", "[" + 
item.getLocation().getLatitude() + "," + item.getLocation().getLongitude() + 
"]");
    --- End diff --
    
    GeoJSON is long, lat
    
    http://geojson.org/geojson-spec.html#id2


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to