JPryce-Aklundh / openstreetmap

Use Neo4j with the New York Central Park geo data provided in OpenStreetMap

Home Page:https://medium.com/neo4j/new-sandbox-in-town-e126246d2605

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osm logo

OpenStreetMap (OSM) Graph Example

Description: Use Neo4j with the global geodata provided in OpenStreetMap

Nodes 69165 Relationships 76040

model
Figure 1. Model
example
Figure 2. Example
Example Query:
MATCH (p1:PointOfInterest {type:$type}), (p2:PointOfInterest)
WHERE p1<>p2 AND distance(p1.location,p2.location) < 200
RETURN p2.name as name

Setup

This is for Neo4j version: 3.5,4.0

Rendered guide available from: :play openstreetmap

Data files: import/*.csv

Zip file: download the openstreetmap.zip and add it as "project from file" to a 3.5 database in Neo4j Desktop.

Code Examples

GraphQL API

See /graphql directory for Node.js GraphQL API server example using @neo4j/graphql

About

Use Neo4j with the New York Central Park geo data provided in OpenStreetMap

https://medium.com/neo4j/new-sandbox-in-town-e126246d2605


Languages

Language:JavaScript 31.3%Language:Go 30.0%Language:Shell 18.8%Language:Java 8.4%Language:C# 7.4%Language:Python 4.2%