Book Image

Neo4j High Performance

By : Sonal Raj
Book Image

Neo4j High Performance

By: Sonal Raj

Overview of this book

Table of Contents (15 chapters)
Neo4j High Performance
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Recommendations on map data


Map data is more complex and critical than sales or social data. However, its one advantage over the others, is that it is mostly static in nature. So what kind of recommendations can we generate for map data? Suppose a user searches for a location on the map, you can generate suggestions for nearby places of interest depending upon the user's search history. For example, if a user searches for restaurants once in a while, you could generate suggestions for restaurants in any new locations that he visits. Let us look at how to approach this issue.

Consider a map data set which represents the locations in the form of nodes, and the roads connecting them in the form of bi-directional relationships. The Location entity and its properties can be illustrated as follows

The Road entity and its property structure can be illustrated in the web interface as follows:

So, the map graph by itself is not sufficient to create a recommendation system. We will need to add it to...