Skip to content

Fix for Ticket #1387 - Swapped Geotag Data#1394

Open
rcquan wants to merge 2 commits into
ushahidi:developfrom
rcquan:develop
Open

Fix for Ticket #1387 - Swapped Geotag Data#1394
rcquan wants to merge 2 commits into
ushahidi:developfrom
rcquan:develop

Conversation

@rcquan

@rcquan rcquan commented Aug 13, 2014

Copy link
Copy Markdown

In application/controllers/scheduler/s_twitter.php in line 133, you will see:

  if ($tweet->{'coordinates'} != null)
                            {
                                    $tweet_lat = $tweet->{'coordinates'}->coordinates[0];
                                    $tweet_lon = $tweet->{'coordinates'}->coordinates[1];
                            }

This generates the swapped geotag data referenced in Issue #1387 submitted by @j73wa.

I swapped the indices (changed the 0 to 1 and vice versa) so that the latitude and longitude data will be mapped correctly.

rcquan added 2 commits August 13, 2014 17:56
Swapped latitude and longitude coordinates to get plot correct geotag
location on map.
subproject commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant