'{ "name": "david point", "geom": {"type": "Point", "coordinates":
[-77.119752, 38.961881]}}'
to:
http://geoapi.com/v1/e/user-myapikey-myuniquestring?apikey=myapikey
I receive this response with an HTTPOK (200) header
{"query": {"type": "entity", "params": {"guid": "user-myapikey-
myuniquestring", "show-geom": "all"}}, "result": {"name": "david
point", "views": ["weather", "foursquare", "twitter", "flickr",
"youtube"], "userviews": [], "shorturl": "http://geo.am/rt5utk",
"geom": {"type": "Point", "coordinates": [-77.119752, 38.961881]},
"type": "user-entity"}}
So I first need to know if this response is definitively an indication
that GeoAPI has successfully created my entity?
Now I want to view this entity to get warm fuzzies, so I would like to
do that in the browser since I don't yet have fully tested custom code
to read entities programmatically. My understanding is that to view
this app-specific entity I could go to the shorturl that it gave me
above, e.g. http://geo.am/rt5utk. When I put that in the browser, it
redirects me to http://api.geoapi.com/e/user-myapikey-myuniquestring,
which I count as a good sign, however, I get a 404 error.
Then I also tried this url: http://api.geoapi.com/v1/e/user-myapikey-myuniquestring,
which it seems from the docs is another way to see the entity, however
that gives me a 404 too.
Can anyone assist? Thanks!
However I'm still not clear on why the shorturl above in my original
post returns a 404.
Thanks,
David
On Jan 17, 12:30 pm, David <swearinge...@gmail.com> wrote:
> Ok I'm a newbie to GeoAPI. Writing some Ruby code to create and read
> app-specific entities. Upon POSTing this string:
>
> '{ "name": "david point", "geom": {"type": "Point", "coordinates":
> [-77.119752, 38.961881]}}'
>
> to:
>
> http://geoapi.com/v1/e/user-myapikey-myuniquestring?apikey=myapikey
>
> I receive this response with an HTTPOK (200) header
>
> {"query": {"type": "entity", "params": {"guid": "user-myapikey-
> myuniquestring", "show-geom": "all"}}, "result": {"name": "david
> point", "views": ["weather", "foursquare", "twitter", "flickr",
> "youtube"], "userviews": [], "shorturl": "http://geo.am/rt5utk",
> "geom": {"type": "Point", "coordinates": [-77.119752, 38.961881]},
> "type": "user-entity"}}
>
> So I first need to know if this response is definitively an indication
> that GeoAPI has successfully created my entity?
>
> Now I want to view this entity to get warm fuzzies, so I would like to
> do that in the browser since I don't yet have fully tested custom code
> to read entities programmatically. My understanding is that to view
> this app-specific entity I could go to the shorturl that it gave me
> above, e.g. http://geo.am/rt5utk. When I put that in the browser, it
> redirects me tohttp://api.geoapi.com/e/user-myapikey-myuniquestring,
Ok I'm a newbie to GeoAPI. Writing some Ruby code to create and read
app-specific entities. Upon POSTing this string:
'{ "name": "david point", "geom": {"type": "Point", "coordinates":
[-77.119752, 38.961881]}}'
to:
http://geoapi.com/v1/e/user-myapikey-myuniquestring?apikey=myapikey
I receive this response with an HTTPOK (200) header
{"query": {"type": "entity", "params": {"guid": "user-myapikey-
myuniquestring", "show-geom": "all"}}, "result": {"name": "david
point", "views": ["weather", "foursquare", "twitter", "flickr",
"youtube"], "userviews": [], "shorturl": "http://geo.am/rt5utk",
"geom": {"type": "Point", "coordinates": [-77.119752, 38.961881]},
"type": "user-entity"}}
So I first need to know if this response is definitively an indication
that GeoAPI has successfully created my entity?
Now I want to view this entity to get warm fuzzies, so I would like to
do that in the browser since I don't yet have fully tested custom code
to read entities programmatically. My understanding is that to view
this app-specific entity I could go to the shorturl that it gave me
above, e.g. http://geo.am/rt5utk. When I put that in the browser, it
redirects me to http://api.geoapi.com/e/user-myapikey-myuniquestring,
which I count as a good sign, however, I get a 404 error.
Then I also tried this url: http://api.geoapi.com/v1/e/user-myapikey-myuniquestring,
which it seems from the docs is another way to see the entity, however
that gives me a 404 too.
Can anyone assist? Thanks!
On Jan 17, 1:10 pm, Tom Wuttke <tomwut...@gmail.com> wrote:
> On Sun, Jan 17, 2010 at 9:30 AM, David <swearinge...@gmail.com> wrote:
> > Ok I'm a newbie to GeoAPI. Writing some Ruby code to create and read
> > app-specific entities. Upon POSTing this string:
>
> > '{ "name": "david point", "geom": {"type": "Point", "coordinates":
> > [-77.119752, 38.961881]}}'
>
> > to:
>
> >http://geoapi.com/v1/e/user-myapikey-myuniquestring?apikey=myapikey
>
> > I receive this response with an HTTPOK (200) header
>
> > {"query": {"type": "entity", "params": {"guid": "user-myapikey-
> > myuniquestring", "show-geom": "all"}}, "result": {"name": "david
> > point", "views": ["weather", "foursquare", "twitter", "flickr",
> > "youtube"], "userviews": [], "shorturl": "http://geo.am/rt5utk",
> > "geom": {"type": "Point", "coordinates": [-77.119752, 38.961881]},
> > "type": "user-entity"}}
>
> > So I first need to know if this response is definitively an indication
> > that GeoAPI has successfully created my entity?
>
> yes it is.
>
>
>
> > Now I want to view this entity to get warm fuzzies, so I would like to
> > do that in the browser since I don't yet have fully tested custom code
> > to read entities programmatically. My understanding is that to view
> > this app-specific entity I could go to the shorturl that it gave me
> > above, e.g. http://geo.am/rt5utk. When I put that in the browser, it
> > redirects me tohttp://api.geoapi.com/e/user-myapikey-myuniquestring,
Thanks,
David
On Jan 17, 1:10 pm, Tom Wuttke <tomwut...@gmail.com> wrote:
> On Sun, Jan 17, 2010 at 9:30 AM, David <swearinge...@gmail.com> wrote:
> > Ok I'm a newbie to GeoAPI. Writing some Ruby code to create and read
> > app-specific entities. Upon POSTing this string:
>
> > '{ "name": "david point", "geom": {"type": "Point", "coordinates":
> > [-77.119752, 38.961881]}}'
>
> > to:
>
> >http://geoapi.com/v1/e/user-myapikey-myuniquestring?apikey=myapikey
>
> > I receive this response with an HTTPOK (200) header
>
> > {"query": {"type": "entity", "params": {"guid": "user-myapikey-
> > myuniquestring", "show-geom": "all"}}, "result": {"name": "david
> > point", "views": ["weather", "foursquare", "twitter", "flickr",
> > "youtube"], "userviews": [], "shorturl": "http://geo.am/rt5utk",
> > "geom": {"type": "Point", "coordinates": [-77.119752, 38.961881]},
> > "type": "user-entity"}}
>
> > So I first need to know if this response is definitively an indication
> > that GeoAPI has successfully created my entity?
>
> yes it is.
>
>
>
> > Now I want to view this entity to get warm fuzzies, so I would like to
> > do that in the browser since I don't yet have fully tested custom code
> > to read entities programmatically. My understanding is that to view
> > this app-specific entity I could go to the shorturl that it gave me
> > above, e.g. http://geo.am/rt5utk. When I put that in the browser, it
> > redirects me tohttp://api.geoapi.com/e/user-myapikey-myuniquestring,
Thanks again,
DAvid
On Jan 17, 2:42 pm, Tom Wuttke <tomwut...@gmail.com> wrote:
> I'm not the best person to answer this one, but if nothing else I believe
> you can use the mql style point-radius search
>
> http://docs.geoapi.com/MQL-Search
>
> to constrain on user-defined parameters that have been "indexed'
>
> http://docs.geoapi.com/User-Views#Indexing
>
> So you may need to add a property that will uniquely define your user views
> and constrain on that. Unfortunately, I don't have a concrete example for
> you, nor have I worked with this directly, I'm just giving you quick ideas.
> If someone else knows the exact answer, please follow up.
>
> - Tom
> <http://docs.geoapi.com/User-Views#Indexing>
George
I got past that error. I am now I think very close but not quite there, if you don't mind checking this thread:
http://groups.google.com/group/geoapi/browse_thread/thread/f7bd1c24178cc51e
Great service!
DAvid