Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import geopandas as gpd
import pandas as pd
import fiona
fiona.drvsupport.supported_drivers['kml'] = 'rw' # enable KML support which is disabled by default
fiona.drvsupport.supported_drivers['KML'] = 'rw' # enable KML support which is disabled by default
epc_data = pd.read_excel('./data/macromerge3.xlsm', sheetname='DomesticBulkDataAB')
geocodes = gpd.tools.geocode(["{}, {}".format(row.ADDRESS1, row.POSTCODE) for index, row in epc_data[:20].iterrows()],
provider='googlev3')
geocodes.to_file('./build/geocodes.kml, driver='kml')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.