Geospatial Features Using Kakao API
Project description
geokakao
The geokakao
package provides a convenient way to utilize the Kakao API for converting addresses into GeoPackages. This package allows you to extract coordinates (longitude and latitude) from provided addresses and integrate them into a DataFrame. You can then convert the enriched DataFrame back into the GeoPackage format, facilitating seamless integration of address data with geographic coordinates.
Features
- Convert addresses to coordinates (longitude and latitude) using the Kakao API.
- Integrate coordinate information into a DataFrame containing address data.
- Convert the enriched DataFrame back into the GeoPackage format.
Installation
To install the geokakao
package, you can use the following pip command:
pip install geokakao
Usage
Here's a simple example of how to use the geokakao package:
# Load your DataFrame with address information
data = {'Name': ['국립공원공단 본사',
'국립공원연구원 본원',
'치악산국립공원사무소'],
'Address': ['강원특별자치도 원주시 혁신로 22',
'강원특별자치도 원주시 단구로 171',
'강원특별자치도 원주시 소초면 무쇠점2길 26']}
df = pd.DataFrame(data)
# Convert addresses to coordinates and integrate into the DataFrame
gk.add_coordinates_to_dataframe(df, 'Address')
df.to_csv('korea_np.csv', index=False, encoding='utf-8')
# Save the enriched DataFrame to a GeoPackage file
input_csv = "korea_np.csv"
output_gpkg = "korea_np.gpkg"
gk.csv_to_gpkg(input_csv, output_gpkg)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file geokakao-0.1.0.tar.gz
.
File metadata
- Download URL: geokakao-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8748addc5cc12bf285a714235bb53ebaf35c4a3b522aa3bdd58d1653cf719192 |
|
MD5 | 197b57e7d45d149afc819f5e15d8472a |
|
BLAKE2b-256 | ad8d8c96976c6fc241d4c6c5d127bd56e21cbe14d7adc9d3f2f4ae28cfd0fbea |
File details
Details for the file geokakao-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: geokakao-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7d3915182b8acd239675b32abdca833a75f41e65027fcedd14b86b9eb9315b1 |
|
MD5 | 9d0c844845680a588fe0e9e0cc1a8859 |
|
BLAKE2b-256 | 8fbfbd84055101f067bc3e7627d41e9779db2047112947736da3081e5d85828a |