faas-reverse-geocoding

command module
v0.0.0-...-69bbe47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 9 Imported by: 0

README

Golang Reverse GeoCoding

Go Report Card GitHub go.mod Go version GoDoc GitHub release(latest by date) Commits GitHub

Reverse geocoding is used to find places or addresses near a latitude, longitude pair. Picture a map showing building outlines but no labels, then clicking on a building and being shown the name of the business. That is reverse geocoding.

This repository holds a small web service that performs reverse geocoding to determine whether specified geo coordinates has an adress. If it is then the response will contain attributes associated with the matched adress, municipality, county, country, etc.

Deployment

Helm Chart
helm repo add geocode https://saidsef.github.io/faas-reverse-geocoding
helm repo update
helm upgrade --install geocode geocode/reverse-geocoding --namespace geocode --create-namespace

NOTE: API can be accessed via port-forward Service or via Enabling Ingress

Kustomization
kubectl apply -k deployment/

NOTE: API can be accessed via port-forward Service or via updating Ingress

Take it for a test drive:

curl -d '{"lat":"41.40338","lon":"2.17403"}' http://localhost:8080/
from requests import post
data='{"lat":"41.40338","lon":"2.17403"}'
r = post('http://localhost:8080/', data=data)
print(r.text)

Source

Our latest and greatest source of Jenkins can be found on [GitHub]. Fork us!

Contributing

We would ❤ you to contribute by making a pull request.

Please read the official Contribution Guide for more information on how you can contribute.

Documentation

Overview

Package main provides a simple HTTP server that interacts with the Nominatim API to reverse geocode latitude and longitude coordinates. It also serves Prometheus metrics at the /metrics endpoint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL