You can conduct reverse geocoding using the Python Geocoder library.
Notes: Input for coordinate is using [lat, lng] order.
import geocoder
g = geocoder.osm([45,-75], method='reverse')
{...}| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // munged from https://github.com/simontime/Resead | |
| namespace sead | |
| { | |
| class Random | |
| { |
| #!/bin/python3 | |
| # Fork of https://gist.github.com/davej/113241 | |
| # Requirements: | |
| # - twitter API credentials (replace the correponding variables) | |
| # - tweet.js file you get by extracting your twitter archive zip file (located in data/) | |
| # License : Unlicense http://unlicense.org/ | |
| import tweepy | |
| import |
| #!/bin/python3 | |
| # Largely copied from http://www.mathewinkson.com/2015/03/delete-old-tweets-selectively-using-python-and-tweepy | |
| # However, Mathew's script cannot delete tweets older than something like a year (these tweets are not available from the twitter API) | |
| # This script is a complement on first use, to delete old tweets. It uses your twitter archive to find tweets' ids to delete | |
| # How to use it : | |
| # - download and extract your twitter archive (tweet.js will contain all your tweets with dates and ids) | |
| # - put this script in the extracted directory | |
| # - complete the secrets to access twitter's API on your behalf and, possibly, modify days_to_keep | |
| # - delete the few junk characters at the beginning of tweet.js, until the first '[' (it crashed my json parser) | |
| # - review the script !!!! It has not been thoroughly tested, it may have some unexpected behaviors... |
| #!/bin/python3 | |
| # Largely copied from http://www.mathewinkson.com/2015/03/delete-old-tweets-selectively-using-python-and-tweepy | |
| # However, Mathew's script cannot delete tweets older than something like a year (these tweets are not available from the twitter API) | |
| # This script is a complement on first use, to delete old tweets. It uses your twitter archive to find tweets' ids to delete | |
| # How to use it : | |
| # - download and extract your twitter archive (tweet.js will contain all your tweets with dates and ids) | |
| # - put this script in the extracted directory | |
| # - complete the secrets to access twitter's API on your behalf and, possibly, modify days_to_keep | |
| # - delete the few junk characters at the beginning of tweet.js, until the first '[' (it crashed my json parser) | |
| # - review the script !!!! It has not been thoroughly tested, it may have some unexpected behaviors... |
| # Copyright 2017 Dan Krause | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |