Comments (3)
I haven't generated one in years as my original one still works. If you hear back from MapQuest support then please update this bug.
from elodie.
@amit-handa I had a similar experience, keep trying ;-)
In the meantime, a lower quality solution is to hack in local geo lookup, using reverse_geocoder - https://github.com/thampiman/reverse-geocoder
Hack elodie/geolocation.py
to add
import reverse_geocoder
Then replace lookup() - or simply add an additional function to replace the existing one (you can monkey patch this too):
def lookup_hardcoded_reverse_geocoder(**kwargs):
if(
'location' not in kwargs and
'lat' not in kwargs and
'lon' not in kwargs
):
return None
if 'location' in kwargs:
raise NotImplemented()
coordinates = [(kwargs['lat'], kwargs['lon'])]
#results = reverse_geocoder.search(coordinates)
results = reverse_geocoder.search(coordinates, mode=1) # non-parrellel mode, avoid multiprocessing RuntimeError fork error(s)
result = {
'address': {
'country': results[0]['cc'],
'state': results[0]['admin1'], # potentiall could do 'admin2' - for US lookup of (37.368, -122.03) not recommended
'default': results[0]['admin1'], # potentiall could do 'admin2' - for US lookup of (37.368, -122.03) not recommended
'city': results[0]['name'],
}
}
return result
# hack
lookup = lookup_hardcoded_reverse_geocoder
from elodie.
Thanks for responding.
mapquest support is responsive (thank god !). I was able to get the key, had to recreate the account.
root cause is to use https://developer.mapquest.com
rather than http://..
version. latter is obsolete (not sure why they still expose it though, but I aint complaining for anything I get free)
from elodie.
Related Issues (20)
- keywords based dynamic albums HOT 1
- imghdr going away
- Crash on text file NOT containing us-ascii or utf-8 in first line
- feature: able to create symlinks instead of copying
- Calculate checksum of image without EXIF-data
- Unknown Location - invalid AppKey HOT 14
- Support a time offset in addition to absolute time
- ISO 8601 datetime without capitalising the rest of the filename? HOT 1
- Dockerfile no longer resolves to a valid url for Exiftool download
- Dockerfile no longer works with debian:jessie as the base
- Unexpected int returned instead of string from metadata[part] in filesystem.py HOT 1
- Will there be an official Elodie docker image published on the cloud (ie not the Dockerfile) ?
- Elodie not recognizing videos with the .mkv file extension HOT 2
- Feature request: support for NRW and RAF files
- config.ini ignored HOT 5
- Hard to tell what the problem is when there's errors importing files HOT 7
- Need to add a test: adding a file which is already in destination
- CircleCI URL for exiftool returns 404
- Use local database for geolocation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elodie.