Skip to Content
Node.js 6.x Blueprints
book

Node.js 6.x Blueprints

by Fernando Monteiro
August 2016
Intermediate to advanced
376 pages
6h 33m
English
Packt Publishing
Content preview from Node.js 6.x Blueprints

Chapter 5.  Creating a Store Locator Application with MongoDB Geospatial Query

In this chapter, we will build an application to store Geolocation data with coordinates (latitude and longitude) and show them on the map by only using resources of the express framework, the Google Maps API, and pure JavaScript.

It is very common nowadays to use JavaScript libraries for this purpose, but most of them are used only on the frontend of the application, often consuming an endpoint with data in JSON format and updating the UI using Ajax. But we will use only JavaScript on the backend, building a MVC application.

Also, we will use a very powerful feature from MongoDB which is the ability to generate indexes in coordinates the using operators such as $near ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Node.js Development

Learning Node.js Development

Andrew Mead
VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9781785888434Supplemental Content