Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neo4j-graph-examples/openstreetmap
Use Neo4j with the New York Central Park geo data provided in OpenStreetMap
https://github.com/neo4j-graph-examples/openstreetmap
central-park example-data gis neo4j neo4j-approved new-york openstreetmap sandbox
Last synced: about 1 month ago
JSON representation
Use Neo4j with the New York Central Park geo data provided in OpenStreetMap
- Host: GitHub
- URL: https://github.com/neo4j-graph-examples/openstreetmap
- Owner: neo4j-graph-examples
- Created: 2020-12-02T16:55:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-12T07:54:32.000Z (6 months ago)
- Last Synced: 2024-07-30T18:45:39.641Z (6 months ago)
- Topics: central-park, example-data, gis, neo4j, neo4j-approved, new-york, openstreetmap, sandbox
- Language: JavaScript
- Homepage: https://medium.com/neo4j/new-sandbox-in-town-e126246d2605
- Size: 25.7 MB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 22
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
:name: openstreetmap
:long-name: OpenStreetMap (OSM)
:description: Use Neo4j with the global geodata provided in OpenStreetMap
:icon:
:logo: documentation/img/osm-logo.png
:tags: example-data, dataset, map-data, geographic, openstreetmap
:author: William Lyon
:use-load-script: scripts/openstreetmap.cypher
:data: import/*.csv
:use-dump-file: data/openstreetmap-40.dump
:use-plugin:
:target-db-version: 3.5,4.0
:bloom-perspective: bloom/openstreetmap.bloom-perspective
:guide: documentation/openstreetmap.neo4j-browser-guide
:rendered-guide: https://guides.neo4j.com/sandbox/openstreetmap/index.html
:model: documentation/img/model.png
:example: documentation/img/example.png
:nodes: 69165
:relationships: 76040:model-guide:
:todo:
image::{logo}[width=100]== {long-name} Graph Example
Description: _{description}_
Nodes {nodes} Relationships {relationships}
.Model
image::{model}[].Example
image::{example}[width=600].Example Query:
[source,cypher,role=query-example,param-name=type,param-value=clock,result-column=name,expected-result="Dancing Crane Cafe"]
----
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: `{target-db-version}`
Rendered guide available from: `:play openstreetmap`
// or `:play {rendered-guide}``Unrendered guide: link:{guide}[]
Data files: `{data}`
Zip file: download the link:data/{name}.zip[{name}.zip] and add it as "project from file" to a 3.5 database in https://neo4j.com/developer/neo4j-desktop[Neo4j Desktop^].
=== Code Examples
* link:code/javascript/example.js[JavaScript]
* link:code/java/Example.java[Java]
* link:code/csharp/Example.cs[C#]
* link:code/python/example.py[Python]
* link:code/go/example.go[Go]=== GraphQL API
See link:graphql[`/graphql` directory] for Node.js GraphQL API server example using link:https://www.npmjs.com/package/@neo4j/graphql[`@neo4j/graphql`]