Syntax

39 views
Skip to first unread message

Jeremy Mears

unread,
Dec 9, 2012, 10:16:14 AM12/9/12
to digi...@googlegroups.com

Chris McDowall

unread,
Dec 9, 2012, 7:22:49 PM12/9/12
to digi...@googlegroups.com
Hi Jeremy,

Thanks for your question. Two things.

1) The syntax in the query above is not quite right. At the moment the DigitalNZ API can only perform date range queries at the level of years. To perform a search of all records between 1901 use the folowing syntax: 
http://api.digitalnz.org/records.json?api_key=xxxxxxxxxxxxxxxxxxxxxx&and[year]=[1901%20TO%201920]
I am adding this example to the DigitalNZ API documentation.


2) Most records within the Alexander Turnbull Library are not available through the public API at this point. We are hoping this will change in the future and we are trying to make this happen with the Turnbull staff. We'll keep in touch about this.

All the best,
Chris McDowall
Manager, DigitalNZ systems

Jeremy Mears

unread,
Dec 10, 2012, 3:26:00 PM12/10/12
to digi...@googlegroups.com
Thanks Chris.  

Jeremy Mears

unread,
Dec 26, 2012, 11:03:19 AM12/26/12
to digi...@googlegroups.com
More help!

The file attached has my script to display a google map and search box with autocomplete where the user can type in a surname.  Using Google Fusion Tables. 

Col0 is the list of surnames to query. Col12 is the Location of where the solider's War Grave is.

Any obvious suggestions to make it run?


On Sunday, December 9, 2012 3:16:14 PM UTC, Jeremy Mears wrote:
1943.txt

Chris McDowall

unread,
Dec 27, 2012, 8:10:59 PM12/27/12
to digi...@googlegroups.com
Hi Jeremy,

It would be helpful if you could provide some indication what the error message you are receiving. How is your application failing?

Perhaps you could put it up as a http://jsfiddle.net/ script so we can see what is going on for ourselves. That would be incredibly helpful for working out what is going on.

Chris 

Jeremy Mears

unread,
Dec 30, 2012, 3:11:15 PM12/30/12
to digi...@googlegroups.com
Hi,


For info:
I started with this fusion table layer wizard: 

To produce this: 
http://newzealanddivision.org/page/test

Then have got stuck adding the autocomplete function by copying and then tweaking code from this sample:

"Learning by doing", so apologies. Hope this helps.

Chris McDowall

unread,
Jan 6, 2013, 8:23:44 PM1/6/13
to digi...@googlegroups.com
Hi Jeremy,

Apologies for the delay. I was on leave when this arrived and it took me a while to unpick.

There were a few issues with your code. The main thing is that you didn't seem to be loading the Google visualisation library, but there were a few other issues in your code.

A working version is here: http://jsfiddle.net/bBYN8/1/

For simplicity, I just dumped all the code into the HTML portion JSFiddle.

All the best,
Chris

Jeremy Mears

unread,
Jan 8, 2013, 4:32:35 PM1/8/13
to digi...@googlegroups.com
Thanks very much, appreciate the help and skill.  Now up and running on the site (page ....wargraves).


On Sunday, December 9, 2012 3:16:14 PM UTC, Jeremy Mears wrote:
Reply all
Reply to author
Forward
0 new messages