Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section E.1. Spatial indexing basics

E.1. Spatial indexing basics

We’ll use a US ZIP code database to demonstrate MongoDB’s spatial indexes. The data is available at http://mng.bz/dOpd. When you unzip the archive, you’ll get a JSON file that you can import using mongoimport, like so:

$ mongoimport -d geo -c zips zips.json


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial