API Docs

14 views
Skip to first unread message

Shekhar Krishnan

unread,
May 26, 2013, 6:16:47 PM5/26/13
to LCGAZ...@listserv.loc.gov, nypl-ga...@googlegroups.com
As discussed in my meeting at NYPL last week, here are some basic docs
on the Gazetteer API:

http://support.topomancy.com/projects/gazetteer/wiki/ApiDocs

Please let us know if you have any questions or clarifications. Paul at
NYPL Labs said he would follow up.

Thanks,


S.K.
--

Shekhar Krishnan
Topomancy LLC

http://shekhar.cc
http://topomancy.com

David Riordan

unread,
May 29, 2013, 9:26:14 AM5/29/13
to nypl-ga...@googlegroups.com
For everyone who wants to start hacking on the NYC Chronology of Place API, here's that documentation (that doesn't require a login to view):

Corey A Harper

unread,
May 29, 2013, 9:51:53 AM5/29/13
to David Riordan, nypl-ga...@googlegroups.com
This is very cool, David,

A couple of quick questions. I did a search for Brooklyn Heights:

It looks like what I got back was a list of building addresses, with very specific lat/long values, but the primary name for all of them is Brooklyn Heights Historic District, with what appear to be more specific Columbia Heights street adresses in an alt field. 

However, when I do a search for Bowery, it's more what I'd expect, with addresses in the name field.

Also, I can't tell how to include feature code limits in my query string. For example, I'd like to filter out BLDG, as my results seem to be primarily buildings at this time, and I'm not sure what administrative level I'm actually looking for.

Finally, what can you tell me about the www.nyc.gov/html/ URIs in the results. At a glance, some seem to have pattern "dcp/html/bytes/applbyte.shtml.[num]" while others seem to havedatamine/html/data/terms.html?dataSetJs=geo.js&theIndex=[num]... Oddly, both types of results seem to often be included in BLDG codes.

Sorry for the deluge of questions, and feel free to tell me "Leave me alone, you'll find out next Tuesday..."

Thanks,
-Corey


--
You received this message because you are subscribed to the Google Groups "NYPL Gazetteer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nypl-gazettee...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Corey A Harper
Metadata Services Librarian
New York University Libraries
20 Cooper Square, 3rd Floor
New York, NY 10003-7112
212.998.2479
corey....@nyu.edu

David Riordan

unread,
May 30, 2013, 9:13:27 PM5/30/13
to corey....@nyu.edu, nypl-ga...@googlegroups.com
To answer your question about neighborhoods, we need to load a better neighborhood layer into the service. It'll require some work, but one of the things we hope to do during the event is load in betashapes for NYC neighborhoods - crowd sourced neighborhood designations created from the geo data of Flickr photos (along with the Gownus Heights shape file).

​As for the other questions, if anyone from Topomancy could field this it'd be much appreciated. 

Sent from Mailbox for iPad

Tim Waters

unread,
May 31, 2013, 10:35:54 AM5/31/13
to corey....@nyu.edu, David Riordan, nypl-ga...@googlegroups.com
Hi Corey,

I have added the examples for search in a fork of the gist:


This may give some more guidance. Otherwise, I'd recommend looking at the user interface at dev.nypl.gazetteer.in and seeing what the application sends to the API via a javascript console. The UI uses the API wholly, so anything that can do, you can do too!

More generally the query string parameter uses the Lucene query format. So, for example, I think both things will work for excluding a specific feature_code

feature_code:(NOT BLDG)
feature_code:(-BLDG) 



Finally, what can you tell me about the www.nyc.gov/html/ URIs in the results. At a glance, some seem to have pattern "dcp/html/bytes/applbyte.shtml.[num]" while others seem to havedatamine/html/data/terms.html?dataSetJs=geo.js&theIndex=[num]... Oddly, both types of results seem to often be included in BLDG codes

Again looking at what the UI sends here may help - but using the Source selection button - which selects which origin or source the data comes from, and the regex (code field) to be passed in the query string for that. 

I do think that we should add an API method to get these origin / source information though, I've also added these another gist in the meantime: https://gist.github.com/timwaters/5685396

Cheers,

Tim

Corey A Harper

unread,
Jun 3, 2013, 1:47:21 PM6/3/13
to Tim Waters, David Riordan, nypl-ga...@googlegroups.com
Tim,

Thanks so much for this. The UI layer + Chrome Dev Tools definitely is the best way to piece together how the API's working, and the gist of source codes / URL patterns definitely explains my other question.

This is a tremendously cool resource you're all building, and I'm looking forward to some more indepth playing tomorrow. If I manage to pull it together in time, I'm bringing a pile of place names culled from the databases of the Museum of the City of New York and the New York Historical Society. I also may be able to pull some things from some other data streams I have kicking around -- particularly the Center for Jewish History's EAD records, though that extraction may have to be something that I do onsite tomorrow.

David: Agreed re: Neighborhood Names, and fantastic news re: betashapes & Gownas Heights shapefile. What GIS software are you folks hacking in? And have you considered sourcing some data from stuff like these:

Or rather, for that matter, just from all the crap here:
and here:

... Okay, enough of that for now. Will maybe ask more questions tomorrow morning.

-Corey
Reply all
Reply to author
Forward
0 new messages