Skip to main content

A simple python SDK to connect with the Eikon geospatial platform.

Project description

EikonAI

On demand location intelligence.

Eikonai is a lightweight Python SDK for the EIKON Location APIs: compare places, find places that contain X, and monitor change over time—without the hassle of GIS data wrangling.

  • Context - "What does location X contain?"
  • Similarity — “How similar is location X and location Y?”
  • Change — “How much did this place change since then?”
  • Models - Some models to use on demand for object detection and other helpful tasks

Works nicely in data notebooks, Streamlit apps, and backend services.

Install (dev)

pip install eikonsai

Python: 3.9–3.12 OS: macOS, Linux, Windows

Usage

Quick start

from eikonsai import utils, context, similarity, models

# set your api_key 
import os


# 1. Use the utils module to get your api_key
my_api_key = utils.get_api_key_from_credentials(email="myregisteredemail",
                                                password="mypassword")
os.environ["user_api_key"] = my_api_key

# 2. Get a location description for a given place 

location_1 = [51.531143, -0.159893] # regent's park
location_1_description = context.get_location_description(lat = location_1[0],
                                lon = location_1[1], 
                                resolution="low",
                                user_api_key=os.environ["user_api_key"]
                                )
print(location_1_description)


# 3. Comparing the visual similarity of two different locations

location_1 = [51.531143, -0.159893] # regent's park
location_2 = [51.433727, -0.214443] # wimbledon tennis club
resolution = "high"
visual_similarity = similarity.visual_similarity(location_1_lat_lon_list=location_1,
                             location_2_lat_lon_list=location_2, 
                             resolution=resolution,
                             user_api_key=os.environ["user_api_key"]
                            )
print(visual_similarity)

The official documentation and more extensive examples for Eikon can be found here

Background

All qualifying education email addresses will be provided with free credits for each month for research purposes. To access these credits you must be enrolled on a UK recognised postgraduate degree programme listed here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eikonsai-0.0.8.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eikonsai-0.0.8-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file eikonsai-0.0.8.tar.gz.

File metadata

  • Download URL: eikonsai-0.0.8.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for eikonsai-0.0.8.tar.gz
Algorithm Hash digest
SHA256 cb09ce0e0d425af01808cbc14a2450dc06ae0fd3123a1c55a2c828c59d6d5447
MD5 62232fe1215e1c0c727e9e8d90116720
BLAKE2b-256 b15fef3587694bf51ce3347128911da52d6cc74f48d928da8a402634b6a2e81d

See more details on using hashes here.

File details

Details for the file eikonsai-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: eikonsai-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for eikonsai-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f3b214e52959816b3ae560054bae54070c82e61c26a01d1042b7e6e3c4e474
MD5 657cd6a2295485412028c29a88a30078
BLAKE2b-256 31b8b2c1509120370cde4ea5f9525e24408c2ad2ab95c36d1c2b31ceaf52562c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page