https://github.com/googlesamples/pluscode-swift-demo
An example Plus Code service written in Swift
https://github.com/googlesamples/pluscode-swift-demo
Last synced: about 1 year ago
JSON representation
An example Plus Code service written in Swift
- Host: GitHub
- URL: https://github.com/googlesamples/pluscode-swift-demo
- Owner: googlesamples
- License: apache-2.0
- Created: 2019-04-16T23:21:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T07:40:48.000Z (almost 7 years ago)
- Last Synced: 2025-04-09T06:25:19.647Z (over 1 year ago)
- Language: Swift
- Homepage: https://plus.codes
- Size: 8.79 KB
- Stars: 2
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Plus Code Demo in Swift
> Note: This is not an official Google product.
This sample container is a very simple web server that can convert a
latitude and longitude coordinate into a [Plus Code](https://plus.codes), a concise way to represent location coordinates, usable in Google Maps and other map tools.
It uses the [Open Location Code for Swift](https://github.com/google/open-location-code-swift) open source library for the conversion, and the [Swifter HTTP engine](https://github.com/httpswift/swifter) to handle the requests.
This sample container was demonstrated in the Google Next '19 session [Deploy Your Next Application to Google Kubernetes Engine](https://www.youtube.com/watch?v=JDBq2JvzQOY&list=PLIivdWyY5sqKqrrodcI34M_0Di4B5GFIP
).
## Build
`docker build . -t pluscodedemo`
## Run
`docker run -it -p 8080:80 pluscodedemo`
## Usage
Browse to localhost:8080/*[Latitude]*,*[Longitude]*
e.g. http://localhost:8080/37.784173,-122.401557