Am using my own apikey. Am providing as much info as I can here, for
clarity:
Here's the response from creating the entity:
{"query": {"type": "entity", "params": {"guid": "user-myapikey-carol",
"show-geom": "all"}}, "result": {"name": "carol", "views": ["weather",
"foursquare", "twitter", "flickr", "youtube"], "userviews": ["md-
view", "20816", "myview"], "shorturl": "http://geo.am/6BIXdw", "geom":
{"type": "Point", "coordinates": [-77.11974, 38.96189]}, "type": "user-
entity"}}
Here's the response from writing to the view '20816':
{"query": {"type": "entity-view", "params": {"userview": "20816",
"guid": "user-myapikey-carol"}}, "result": {"entries": [{"date":
"2010-01-18T18:30:26Z", "data": {"name": "downed tree", "utility":
"electric"}, "id": "JRBnCGNb"}, ... [other entries here]
Here's the query I'm sending:
{ "lat": 38.96188, "lon": -77.11975, "radius": "1.0km", "entity":
[{ "guid": null, "type": "user-entity", "userview.20816": {"entries":
[{ "data": { "utility": "electric"}}] } }] }
and the response:
#<Net::HTTPInternalServerError:0x23cb70>
{"error": "you've encountered an internal error :-( please contact
a...@geoapi.com if it persists"}
Thanks for any help you all can provide!
David
#<Net::HTTPOK:0x6193c4>
{"lat": 38.96188, "radius": "1.0km", "lon": -77.11975, "entity": []}
On Jan 18, 2:25 pm, andrei php <myw.php.and...@gmail.com> wrote:
> Hello David,
>
> I think that you should add index for 'utility'.
>
> Seehttp://docs.geoapi.com/User-Views, section Indexing With The options
> Method