This video demonstrates how to use a vanilla MongoDB installation to create a collection of objects and search them using a '2dsphere' index.
Code can be found here:
https://bitbucket.org/damienhampton/p...
In the example, I am creating a directory of services for health related organisations.
This is only a basic demonstration of how to hang things together - I hope it helps.
Stuff used and referenced:
PHP: http://php.net
MongoDB: https://www.mongodb.com
PHP Mongo extension: http://php.net/manual/en/book.mongo.php
MongoDB 2dsphere index: http://docs.mongodb.org/manual/tutori...
On this page of the site you can watch the video online PHP and MongoDB, Geospatial query example with a duration of hours minute second in good quality, which was uploaded by the user 26 Brains 14 August 2015, share the link with friends and acquaintances, this video has already been watched 2,422 times on youtube and it was liked by 8 viewers. Enjoy your viewing!