<slide>
<title>Exercise #1: The script</title>

<list>
	<bullet>%git clone git://github.com/derickr/mongo-workshop.git%</bullet>
	<bullet>%cd mongo-workshop &amp;&amp; git checkout import1%</bullet>
	<bullet>Edit %import-data.php% to create the document structure at #1:
		<list>
			<bullet>Cast all values, due to SimpleXML weirdness</bullet>
			<bullet>%_id% needs to be "n" + the node's ID (in
			%$node['id']%)</bullet>
			<bullet>%type% is %1% for nodes</bullet>
			<bullet>Make sure to add the location (*lon*, *lat*) as a two
			element array in the %loc% element.</bullet>
		</list>
	</bullet>
	<bullet>Edit %import-data.php% to create the document structure at #3:
		<list>
			<bullet>%_id% needs to be "w" + the node's ID (in
			%$way['id']%)</bullet>
			<bullet>%type% is %2% for ways</bullet>
		</list>
	</bullet>
	<bullet>Add the %insert% statement at #2 and #4</bullet>
	<bullet>Run the script: %php import-data.php compress.zlib://antwerp.xml.gz%</bullet>
</list>

</slide>
