
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@conveyal/geocoder-arcgis-geojson
Advanced tools
Isomorphic geocoding for reuse across our JavaScript libraries. This library is built to match the API of geocoder-arcgis in order to facilitate a quick conversion of our applications to use ESRI's geocoder. Read the ESRI docs here. Coordinates must be anything that can be parsed by lonlng.
All API methods (except autocomplete) accept the options clientId
, clientSecret
and forStorage
. When using forStorage
, the clientId
and clientSecret
options are required.
Autocomplete
import {autocomplete} from 'geocoder-arcgis-geojson'
autocomplete({
boundary: {
rect: {
minLon: minLon,
minLat: minLat,
maxLon: maxLon,
maxLat: maxLat
}
},
focusPoint: {lat: 39.7691, lon: -86.1570},
text: '1301 U Str'
}).then((result) => {
console.log(result)
}).catch((err) => {
console.error(err)
})
Bulk
import {autocomplete} from 'geocoder-arcgis-geojson'
bulk({
addresses: [
'1301 U Str',
'123 Main St'
],
boundary: {
rect: {
minLon: minLon,
minLat: minLat,
maxLon: maxLon,
maxLat: maxLat
}
},
clientId: 'secret',
clientSecret: 'secret',
focusPoint: {lat: 39.7691, lon: -86.1570}
}).then((result) => {
console.log(result)
}).catch((err) => {
console.error(err)
})
Reverse
import {reverse} from 'geocoder-arcgis-geojson'
reverse({
point: {
lat: 39.7691,
lng: -86.1570
}
}).then((result) => {
console.log(result)
}).catch((err) => {
console.error(err)
})
search({apiKey, text, ...options})
import {search} from 'geocoder-arcgis-geojson'
search({
text: '1301 U Street NW, Washington, DC',
focusPoint: {lat: 39.7691, lon: -86.1570},
boundary: {
rect: {
minLon: minLon,
minLat: minLat,
maxLon: maxLon,
maxLat: maxLat
}
}
}).then((geojson) => {
console.log(geojson)
}).catch((err) => {
console.error(err)
})
Search for and address using ESRI's suggest service. This service does not return geojson, instead it returns the list of address suggestions and corresponding magicKeys
Parameters
$0
Object
Returns Promise A Promise that'll get resolved with the suggest result
Bulk geocode a list of addresses using ESRI's geocodeAddresses service.
Parameters
$0
Object
Returns Promise A Promise that'll get resolved with the bulk geocode result
Reverse geocode using ESRI's reverseGeocode service.
Parameters
$0
Object
Returns Promise A Promise that'll get resolved with reverse geocode result
Search for an address using ESRI's findAddressCandidates service.
Parameters
$0
Object
$0.clientId
string?$0.clientSecret
string?$0.boundary
Object?$0.focusPoint
Object?$0.forStorage
boolean Specifies whether result is inteded to be stored (optional, default false
)$0.magicKey
string? magicKey to use in searching as obtained from suggest
results$0.size
number (optional, default 10
)$0.text
string The address text to query for$0.url
string? optional URL to override ESRI reverseGeocode endpointReturns Promise A Promise that'll get resolved with search result
FAQs
Return argis geocode results as geojson
The npm package @conveyal/geocoder-arcgis-geojson receives a total of 247 weekly downloads. As such, @conveyal/geocoder-arcgis-geojson popularity was classified as not popular.
We found that @conveyal/geocoder-arcgis-geojson demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.