Geocode a postal address into geographical coordinates (latitude and longitude).
Decodes geographical coordinates (latitude and longitude) into a postal address.
npx @superfaceai/cli install address/geocoding
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient();
async function run() {
// Load the installed profile
const profile = await sdk.getProfile('address/geocoding');
// Use the profile
const result = await profile
.getUseCase('Geocode')
.perform({
query: '1600 Amphitheatre Parkway, Mountain View, CA'
});
return result.unwrap();
}
run();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.