Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 13 2015 20:54

    bnoon on master

    Add gitter.im badge (compare)

Bill Noon
@bnoon
Well, for a standard api the .php extension wouldn’t be there (it exposes an implementation detail). So the endpoint would be http://fs.com/v1/documents?bbox=… but that would involve some changes to apache etc. and I wouldn’t worry about it now.
Steve Signell
@sasignell
oh wait, I think you meant for me to put it in a folder called v1 so it would be /v1/documents.php?bbox etc. rather than documents/v1.php
yes we can change the apache settings late
r
ok I'm changing it again... sorry Huda!
hudajkhan
@hudajkhan
no problem
Steve Signell
@sasignell
so right now I have a bunch of extra calculations in there, each of which could be useful in developing a 'smart' ranking system like we've discussed. Is it OK for me to leave them in there for now?
hudajkhan
@hudajkhan
I think that's fine for now
Steve Signell
@sasignell
I'm pretty happy with the speed of it, considering all the calculations involved
Steve Signell
@sasignell
Huda, the reason you're seeing 3 now is because the sample URL I gave you has a bigger bounding box. If you expand to the whole state, you should get 4 results with vivo URIs
hudajkhan
@hudajkhan
yeah no problem, I was just assessing how the results behaved, etc. and seeing if those results were being returned and how
So I was looking again at how the VIVO interface currently handles entering a geographic location. The user can either use an autocomplete field to enter the name of a location (so lookup by name) or if they don't see what they need, they can select a specific type of location and add a new location of that type.
Our PostGres API specification doesn't currently have a keyword or text matching option for retrieving results (('ll double check)
but what are your thoughts on this particular method of lookup? We wouldn't have to do a lookup until say 3 characters have actually been entered
Steve Signell
@sasignell
Are you talking about the API for geometries I sent a while back? I just added a new one here, with a more readable, nested json structure: http://frontierspatial.com/JanuarySprint/frontier/v1/geometries.php
hudajkhan
@hudajkhan
I was talking about geotagging a given entry, and that requires being able to search PostGres for the geometries that already exist. One mechanism is the page you just sent which is all the geometries in the system and then the user can select which of these they need. I was wondering whether we could add one where the user specifies a few characters or the name of the region they want, so they could enter Tompkins and if that exists in the system, those possible entries would be returned and they could then select which of those they needed. So, hypothetically, if there were a Tompkins County and a Tompkins DEC region, they would see "Tompkins (County)" and "Tompkins (DEC Region)" show up as they type, and then they could pick the one they want
Sort of like what you had working with GeoNames where the application suggests possible matches
I can work with what you showed me though too
as a start
Steve Signell
@sasignell
I'm not sure how your type-ahead functionality works, the one I was using (typeahead.js) was using a json to populate the search array. Can the VIVO interface do the same?
hudajkhan
@hudajkhan
VIVO does use javascript for autocomplete, so I should be able to link its existing autocomplete support to another source - i.e. results from the PostGres API
Steve Signell
@sasignell
OK, this version might be slightly better for your purpose here: http://frontierspatial.com/JanuarySprint/frontier/v1/geometriesList.php
hudajkhan
@hudajkhan
Let us talk more about this tomorrow, but I'll see what I can do with the two examples you have here. Thanks!
Bill Noon
@bnoon
I have to head out. Talk with you tomorrow.
hudajkhan
@hudajkhan
I was thinking we could all have a quick chat tomorrow morning, same time as today, go over things
sure
Steve Signell
@sasignell
sounds good. BTW I have to go tomorrow @4:30 so if we want to do a wrap-up we should probably shoot for 3:45 or 4. Talk to you tomorrow
hudajkhan
@hudajkhan
ok
Bill Noon
@bnoon
@hudajkhan and @dbranchini , if I am going to merge some javascript, should I use the stuff in the develop branch? It has diverged a lot from master.
Darcy Branchini
@dbranchini
yes, develop
Bill Noon
@bnoon
Now I am getting an error about HttpAuth in ComfortableMexicanSofa. Is there I new config I need to add? Is there really a CMS on the site?
Bill Noon
@bnoon
I made the mistake of rebuilding the Gemfile.lock file. It brought in a bunch of newer versions. I have rolled that back and now it starts.
hudajkhan
@hudajkhan
Glad to know that worked, CMS is used for some of the pages
Darcy Branchini
@dbranchini
and i'm not sure we're going to end up using ComfySofa... but we might
Here are the parameters so far: bbox(same format as before), fields (comma separated) and geometry_class (comma separated). If you don't specify fields, it returns the geometry as well, which can be quite large.
also, I changed the name of the folder from 'frontier'-->'mapper' as per Bill's outline
hudajkhan
@hudajkhan
Will this work without a bounding box as well? I tried it and it took a while.
thanks!
Steve Signell
@sasignell
if you have no bounding box and don't specify any fields, it will be enormous. We'll have to figure out a way to limit the results or maybe just return bounding boxes?
Steve Signell
@sasignell
I just changed it to return bboxes instead of the actual geometries-- that speeds it up a lot. We should discuss the pros & cons of this and whether we need to share exact geometries.
hudajkhan
@hudajkhan
I meant if you specify the fields but no bbox. Ok.
Steve Signell
@sasignell
if you specify fields, it should be very fast
hudajkhan
@hudajkhan
ok cool
it might be the javascript plugin that was having issues
(the plugin I use in my browser to look at json)
Steve Signell
@sasignell
hudajkhan
@hudajkhan
We were scheduled to have a meeting now but let me know if that doesn't work for a recap/review
let me know