lalithpolepeddi / learning-flask Goto Github PK
View Code? Open in Web Editor NEWSample application for the Learning Flask course by Packt Publishing.
Home Page: https://www.packtpub.com/web-development/learning-flask-video
Sample application for the Learning Flask course by Packt Publishing.
Home Page: https://www.packtpub.com/web-development/learning-flask-video
Running this app results in this error:
<[OVER QUERY LIMIT] Google - Geocode [empty]>
The error occurs in models.py at this point:
def address_to_latlng(self, address):
g = geocoder.google(address)
A key is required for the query to work.
{
"error_message" : "Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account",
"results" : [],
"status" : "OVER_QUERY_LIMIT"
}
Edit: The Google Geocode API requires a signup with billing details for an API key from June 2018. I switched to the Bing Maps API by signing up here (https://www.bingmapsportal.com/), and generating a key. It doesn't require any billing details.
geocode.google()
with geocode.bing()
in models.py.heroku config key_bingmaps=[INSERT KEY HERE]
in the terminal.import os
geocode.bing(address, key=os.environ.key_bingmaps
in models.py.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.