ushahidi / crowdmap-issues

A centralized repository for filing, tracking and discussing bugs and features in Crowdmap.com and Crowdmap's API.
0 stars 2 forks source link

Fix adding locations by geometry #319

Closed brianherbert closed 11 years ago

brianherbert commented 11 years ago

Originally reported by @dkobia

@brianherbert @evansims - this commit broke crowdmap

Fatal error: Cannot use object of type stdClass as array in /root/cm3/api/helpers/geometry.php on line 194

brianherbert commented 11 years ago

@dkobia What data are you using to produce this error?

dkobia commented 11 years ago

Just trying to create a new post with a location.

dkobia commented 11 years ago

Example Post:

{
  "apikey": "XXXXXXXX",
  "locations[lat]": 37.785835266113281,
  "locations[lon]": -122.4064178466797,
  "message": "Test Fix It! #fixit #garbage"
}
brianherbert commented 11 years ago

Ah, so not using a geometry, just a lat,lon pair.

Thanks!

evansims commented 11 years ago

This appears to have been resolved with ushahidi/Crowdmap-New@149aa7b17bdaf968ae4e61f8c4cc5c5b5311a271; closing.