https://github.com/cedrickchee/grpc-basic-tutorial

gRPC basic tutorial - create a geo indexer service

https://github.com/cedrickchee/grpc-basic-tutorial

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.9%) to scientific vocabulary

Keywords

educational-project golang-examples grpc-go protocol-buffers
Last synced: 6 months ago · JSON representation

Repository

gRPC basic tutorial - create a geo indexer service

Basic Info
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
educational-project golang-examples grpc-go protocol-buffers
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme

README.md

Geo Indexer

Geo Indexer traverse and index points along a route.

Services that are part of Geo Indexer: - RouteGuide - GetFeature: Obtains the feature at a given position. - ListFeatures: Obtains the features available within the given region(rectangle). - RecordRoute: Accepts a stream of points on a route being traversed. - RouteChat: Accepts a stream of RouteNotes sent while a route is being traversed. A RouteNote is a message sent while at a given point.

Usage

Execute the following commands from the project root directory:

  1. Run the server:

sh $ go run server/server.go

  1. From another terminal, run the client:

sh $ go run client/client.go

You’ll see output like this:

sh 2021/09/26 17:35:33 name:"Berkshire Valley Management Area Trail, Jefferson, NJ, USA" location:{latitude:409146138 longitude:-746188906} 2021/09/26 17:35:33 Getting feature for point (0, 0) 2021/09/26 17:35:33 location:{} 2021/09/26 17:35:33 Looking for features within lo:{latitude:400000000 longitude:-750000000} hi:{latitude:420000000 longitude:-730000000} 2021/09/26 17:35:33 Feature: name: "Patriots Path, Mendham, NJ 07945, USA", point:(407838351, -746143763) 2021/09/26 17:35:33 Feature: name: "101 New Jersey 10, Whippany, NJ 07981, USA", point:(408122808, -743999179) 2021/09/26 17:35:33 Feature: name: "U.S. 6, Shohola, PA 18458, USA", point:(413628156, -749015468) 2021/09/26 17:35:33 Feature: name: "5 Conners Road, Kingston, NY 12401, USA", point:(419999544, -740371136) 2021/09/26 17:35:33 Feature: name: "Mid Hudson Psychiatric Center, New Hampton, NY 10958, USA", point:(414008389, -743951297) [... snipped ...] 2021/09/26 17:35:33 Traversing 49 points. 2021/09/26 17:35:33 Route summary: point_count:49 distance:416162755 2021/09/26 17:35:33 Got message First message at point(0, 1) 2021/09/26 17:35:33 Got message Second message at point(0, 2) 2021/09/26 17:35:33 Got message Third message at point(0, 3) 2021/09/26 17:35:33 Got message First message at point(0, 1) 2021/09/26 17:35:33 Got message Fourth message at point(0, 1) 2021/09/26 17:35:33 Got message Second message at point(0, 2) 2021/09/26 17:35:33 Got message Fifth message at point(0, 2) 2021/09/26 17:35:33 Got message Third message at point(0, 3) 2021/09/26 17:35:33 Got message Sixth message at point(0, 3)

Owner

  • Name: Cedric Chee
  • Login: cedrickchee
  • Kind: user
  • Location: PID 1
  • Company: InvictusByte

Lead Software Engineer | LLMs | full stack Go/JS dev, backend | product dev @ startups | 🧑‍🎓 CompSci | alumni: fast.ai, Antler.co

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels