WilliamDenniss / pluscode-swift-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, a concise way to represent location coordinates, usable in Google Maps and other map tools.

It uses the Open Location Code for Swift open source library for the conversion, and the Swifter HTTP engine to handle the requests.

This sample container was demonstrated in the Google Next '19 session Deploy Your Next Application to Google Kubernetes Engine.

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

About

License:Apache License 2.0


Languages

Language:Swift 85.8%Language:Dockerfile 14.2%