Locatienet API Client
To install the package, run:
npm install @locatienet/api-client
Example of use:
<script>
window.LN_API_KEY = 'YOUR_API_KEY_HERE';
</script>
<script src="dist/api-client.js"></script>
<script>
// Call the API
LN.api.getCountries().then(countries => {
console.log('Countries:', countries);
});
LN.api.geocode("Damstraat 1", "NL").then(results => {
console.log('Geocode:', results);
});
</script>
Distributed under MIT license.