
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
For more information about the API, please visit https://docs.stadiamaps.com
Python 3.8+
You can install via your favorite package manager. For example:
pip install stadiamaps
poetry add stadiamaps
Execute pytest
to run the tests. These are run automatically via CI.
After following the installation procedure, you'll need a Stadia Maps API key.
You can create an API key for free here (no credit card required).
import os
import stadiamaps
from stadiamaps.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.stadiamaps.com
# You can also use our EU endpoint to keep traffic within the EU like so:
# configuration = stadiamaps.Configuration(host="https://api-eu.stadiamaps.com")
# See configuration.py for a list of all supported configuration parameters.
configuration = stadiamaps.Configuration()
# Configure API key authorization. This example assumes it is injected via an environment
# variable.
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Enter a context with an instance of the API client
with stadiamaps.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = stadiamaps.GeocodingApi(api_client)
text = "Kursi 3" # str | The place name (address, venue name, etc.) to search for.
try:
# Search and geocode quickly based on partial input.
api_response = api_instance.search_v2(text, lang="en")
print("The response of GeocodingApi->autocomplete:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling GeocodingApi->autocomplete_v2: %s\n" % e)
Check out our integration test folder for more examples.
Official documentation lives at docs.stadiamaps.com, where we have both long-form prose explanations of each endpoint and an interactive API reference.
You can also find auto-generated class references below.
All URIs are relative to https://api.stadiamaps.com
Class | Method | HTTP request | Description |
---|---|---|---|
GeocodingApi | autocomplete | GET /geocoding/v1/autocomplete | Search and geocode quickly based on partial input. |
GeocodingApi | place | GET /geocoding/v1/place | Retrieve details of a place using its GID. |
GeocodingApi | reverse | GET /geocoding/v1/reverse | Find places and addresses near geographic coordinates (reverse geocoding). |
GeocodingApi | search | GET /geocoding/v1/search | Search for location and other info using a place name or address (forward geocoding). |
GeocodingApi | search_structured | GET /geocoding/v1/search/structured | Find locations matching components (structured forward geocoding). |
GeocodingApi | search_bulk | GET /geocoding/v1/search/bulk | Bulk geocoding. |
GeospatialApi | elevation | POST /elevation/v1 | Get the elevation profile along a polyline or at a point. |
GeospatialApi | tz_lookup | GET /tz/lookup/v1 | Get the current time zone information for any point on earth. |
RoutingApi | isochrone | POST /isochrone/v1 | Calculate areas of equal travel time from a location. |
RoutingApi | map_match | POST /map_match/v1 | Match a recorded route to the road network. |
RoutingApi | nearest_roads | POST /nearest_roads/v1 | Find the nearest roads to the set of input locations. |
RoutingApi | optimized_route | POST /optimized_route/v1 | Calculate an optimized route between a known start and end point. |
RoutingApi | route | POST /route/v1 | Get turn by turn routing instructions between two or more locations. |
RoutingApi | time_distance_matrix | POST /matrix/v1 | Calculate a time distance matrix for use in an optimizer. |
RoutingApi | trace_attributes | POST /trace_attributes/v1 | Trace the attributes of roads visited on a route. |
FAQs
Stadia Maps Geospatial APIs
We found that stadiamaps demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.