Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superfaceai/example-glitch-geocode
Glitch example showcasing Geocode use case
https://github.com/superfaceai/example-glitch-geocode
geocoding glitch superface
Last synced: about 1 month ago
JSON representation
Glitch example showcasing Geocode use case
- Host: GitHub
- URL: https://github.com/superfaceai/example-glitch-geocode
- Owner: superfaceai
- Created: 2021-07-01T11:03:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T13:37:22.000Z (over 3 years ago)
- Last Synced: 2024-05-28T20:06:18.761Z (7 months ago)
- Topics: geocoding, glitch, superface
- Language: JavaScript
- Homepage: https://superface-geocode.glitch.me
- Size: 166 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gecode Example
This project showcases the use of to seamlessly integrate APIs without worrying about how they are implemented or even knowing what API and therefore provider do you use.
## Application
The demo application allows you to fetch coordinates based on entered address. You can enter either free form query or address structured by its parts.
To see how to fetch the coordinates using Superface's [OneSDK](https://github.com/superfaceai/one-sdk-js) check out the `getCoordinates()` function in the `superface.js` file.
## What's in this project?
← `superface.js`: This file contains all superface code except superface client code, which is centralized in `client.js`. It contains function `getCoordinates()` where profile and provider are set and result from perform is handled
← `public/`, `src/`: Folders from the remixed Glitch Node.js starter project, it is safe to ignore those for the puprose of learning about Superface
← `server.js`: The main server script of the application, it does not contain Superface-specific code, only a boiler plate to make the application work
← `superface/`: Superface folder that contains the configuration of the [OneSDK](https://github.com/superfaceai/one-sdk-js) for the capabilities and providers used in the application
← `superface/super.json`: The actual configuration of the capabilties and providers
← `.env`: Secrets such as API keys for the used providers
## More Examples
[Reverse Geocode Example](https://glitch.com/edit/#!/reverse-geocode-superface) - use Superface to get address from coordinates
[Email Example](https://glitch.com/edit/#!/wiggly-lumbar-paprika) - send a resilient email with Superface
## Get in touch
We would ❤️ to hear your feedback! Please get in touch either with Vrata ([email protected]) or Z ([email protected]).
If you haven't already, sign up at [https://superface.ai](https://superface.ai).
You can also follow us at Twitter [@superfaceai](https://twitter.com/superfaceai).