Giter Site home page Giter Site logo

go-micro-googlemaps's Introduction

Google Maps Microservice

This is a google maps microservice that returns a URL to be used to embed a map based on a location to your website. It uses RabbitMQ and CloudAMQP to handle messages between applications, and a flask server to host RabbitMQ. The service is hosted on Heroku.

How to use:

The test.py file in the main subdirectory has the code that demonstrates use.

To call the service, prepare JSON formatted data in the form of: {"location": "destination"}.

Then add the prepared data to the following URL: https://map-microservice.herokuapp.com/get_map/"your data here" without the quotations.

The service will return a JSON formatted dictionary with the map embed URL. There are various ways to retrieve this data.

Python example on how to retrieve data:

import requests, json

call = "https://map-microservice.herokuapp.com/get_map/{"location": "Grand Canyon National Park, Arizona"}

response = json.dumps(requests.get(call).json())

# this would return {"url": "requested url here", "success": "true"}

go-micro-googlemaps's People

Contributors

softmax0112 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.