Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/geo

Package Overview
Dependencies
Maintainers
7
Versions
1044
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/geo

Geo category for aws-amplify

  • 1.1.2-unstable.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
254K
decreased by-20.07%
Maintainers
7
Weekly downloads
 
Created

What is @aws-amplify/geo?

@aws-amplify/geo is a package that provides geospatial capabilities for web and mobile applications using AWS services. It allows developers to add location-based features such as maps, geocoding, and routing to their applications.

What are @aws-amplify/geo's main functionalities?

Map Rendering

This feature allows you to render maps in your application. The code sample demonstrates how to retrieve a map by its name using the Geo.getMap method.

import { Geo } from '@aws-amplify/geo';

Geo.getMap('mapName').then(map => {
  console.log(map);
});

Geocoding

Geocoding allows you to convert addresses into geographic coordinates. The code sample shows how to search for a location by text and retrieve the corresponding geographic coordinates.

import { Geo } from '@aws-amplify/geo';

Geo.searchByText('Seattle').then(result => {
  console.log(result);
});

Reverse Geocoding

Reverse geocoding converts geographic coordinates into human-readable addresses. The code sample demonstrates how to search for an address using latitude and longitude.

import { Geo } from '@aws-amplify/geo';

Geo.searchByCoordinates({ latitude: 47.6062, longitude: -122.3321 }).then(result => {
  console.log(result);
});

Routing

Routing provides directions between multiple waypoints. The code sample shows how to get a route between two geographic coordinates.

import { Geo } from '@aws-amplify/geo';

Geo.getRoute({
  waypoints: [
    { latitude: 47.6062, longitude: -122.3321 },
    { latitude: 47.6205, longitude: -122.3493 }
  ]
}).then(route => {
  console.log(route);
});

Other packages similar to @aws-amplify/geo

FAQs

Package last updated on 05 Oct 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc