New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nora-soderlund/google-maps-solar-api

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nora-soderlund/google-maps-solar-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

dist/requests/findClosestBuildingInsights.d.ts

@@ -1,4 +0,4 @@

/// <reference types="google.maps" />
import { BuildingInsights } from "../types/BuildingInsights";
import { ImageryQuality } from "../types/ImageryQuality";
import { LatLng } from "../types/LatLng";
export type FindClosestBuildingInsightsParameters = {

@@ -8,3 +8,3 @@ /**

*/
location: google.maps.LatLngLiteral;
location: LatLng;
/**

@@ -11,0 +11,0 @@ * The minimum quality level allowed in the results.

@@ -18,4 +18,4 @@ "use strict";

url.searchParams.set("key", apiKey);
url.searchParams.set("location.latitude", query.location.lat.toString());
url.searchParams.set("location.longitude", query.location.lng.toString());
url.searchParams.set("location.latitude", query.location.latitude.toString());
url.searchParams.set("location.longitude", query.location.longitude.toString());
if (query.requiredQuality)

@@ -22,0 +22,0 @@ url.searchParams.set("requiredQuality", query.requiredQuality);

{
"name": "@nora-soderlund/google-maps-solar-api",
"description": "A TypeScript implementation of Google Maps Solar API endpoints.",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/index.js",

@@ -10,5 +10,4 @@ "scripts": {

"devDependencies": {
"@types/google.maps": "^3.54.0",
"typescript": "^5.2.2"
}
}

@@ -14,9 +14,12 @@ # google-maps-solar-api

## References
### findClosestBuildingInsights(apiKey: string, query: FindClosestBuildingInsightsParameters): Promise<BuildingInsights>
### Building Insights
#### `findClosestBuildingInsights(apiKey: string, query: FindClosestBuildingInsightsParameters): Promise<BuildingInsights>`
See https://developers.google.com/maps/documentation/solar/reference/rest/v1/buildingInsights/findClosest
### getDataLayers(apiKey: string, query: GetDataLayersParameters): Promise<DataLayers>
### Data Layers
#### `getDataLayers(apiKey: string, query: GetDataLayersParameters): Promise<DataLayers>`
See https://developers.google.com/maps/documentation/solar/reference/rest/v1/dataLayers/get
### getTiff(apiKey: string, url: string): Promise<ArrayBuffer>
#### `getTiff(apiKey: string, url: string): Promise<ArrayBuffer>`
See https://developers.google.com/maps/documentation/solar/reference/rest/v1/geoTiff/get
import { GOOGLE_MAPS_SOLAR_API_BASE } from "../constants";
import { BuildingInsights } from "../types/BuildingInsights";
import { ImageryQuality } from "../types/ImageryQuality";
import { LatLng } from "../types/LatLng";

@@ -9,3 +10,3 @@ export type FindClosestBuildingInsightsParameters = {

*/
location: google.maps.LatLngLiteral;
location: LatLng;

@@ -25,4 +26,4 @@ /**

url.searchParams.set("location.latitude", query.location.lat.toString());
url.searchParams.set("location.longitude", query.location.lng.toString());
url.searchParams.set("location.latitude", query.location.latitude.toString());
url.searchParams.set("location.longitude", query.location.longitude.toString());

@@ -29,0 +30,0 @@ if(query.requiredQuality)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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