Embed presentation
Download as PDF, PPTX









![10
1) Put your coordinates into the document
{ loc : [ 50 , 30 ] } //SUGGESTED OPTION
{ loc : { x : 50 , y : 30 } }
{ loc : { foo : 50 , y : 30 } }
{ loc : { lon : 40.739037, lat: 73.992964 } }
2) Make a 2d index
db.places.ensureIndex( { loc : "2d" } )
How to make it work](https://image.slidesharecdn.com/mongoberlin-130925070435-phpapp01/85/Bringing-Some-Spatial-Love-to-your-Application-with-OpenShift-Mongo-Berlin-Presentation-by-Marek-Jelen-10-320.jpg)




The document outlines a presentation by Marek Jelen on utilizing spatial functionality in MongoDB within the OpenShift platform. It highlights key features such as geospatial indexing and demonstrates how to create and deploy applications effectively using OpenShift. Attendees are encouraged to engage with the provided code and resources to enhance their application development skills.









![10
1) Put your coordinates into the document
{ loc : [ 50 , 30 ] } //SUGGESTED OPTION
{ loc : { x : 50 , y : 30 } }
{ loc : { foo : 50 , y : 30 } }
{ loc : { lon : 40.739037, lat: 73.992964 } }
2) Make a 2d index
db.places.ensureIndex( { loc : "2d" } )
How to make it work](https://image.slidesharecdn.com/mongoberlin-130925070435-phpapp01/85/Bringing-Some-Spatial-Love-to-your-Application-with-OpenShift-Mongo-Berlin-Presentation-by-Marek-Jelen-10-320.jpg)


