https://github.com/raszi/here-client
JavaScript client for the HERE.com APIs
https://github.com/raszi/here-client
api api-client client here javascript typescript
Last synced: about 2 months ago
JSON representation
JavaScript client for the HERE.com APIs
- Host: GitHub
- URL: https://github.com/raszi/here-client
- Owner: raszi
- License: mit
- Created: 2020-09-20T10:58:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T23:02:58.000Z (over 3 years ago)
- Last Synced: 2025-06-16T07:07:17.236Z (about 1 year ago)
- Topics: api, api-client, client, here, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 317 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HERE.com JS client #
[![CI][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![language][language-image]][language-url] [![License][license-image]][license-url]
[ci-image]: https://img.shields.io/github/workflow/status/raszi/here-client/Node.js%20CI/master
[ci-url]: https://github.com/raszi/here-client/actions?query=workflow%3A%22Node.js+CI%22
[npm-image]: https://img.shields.io/npm/v/here-client.svg
[npm-url]: https://npmjs.org/package/here-client
[license-image]: http://img.shields.io/npm/l/here-client.svg
[license-url]: LICENSE
[language-image]: https://img.shields.io/github/languages/top/raszi/here-client
[language-url]: https://github.com/raszi/here-client/search?l=typescript
This is a simple JavaScript client for HERE.com APIs.
## Supported APIs ##
### Weather ###
To retrieve a Weather client you need to call `client.weather`:
* Observation: `weather.observation()`
* Hourly forecast: `weather.hourlyForecast`
* Seven day forecast: `weather.sevenDayForecast`
* Seven day forecast simple: `weather.sevenDayForecastSimple`
## Examples ##
### JavaScript ###
```javascript
const HereClient = require('here-client').default;
const hereClient = new HereClient({ apiKey: 'foobar' });
hereClient.weather.observation({ name: 'Budapest' });
```
### TypeScript ###
```typescript
import HereClient from 'here-client';
const hereClient = new HereClient({ apiKey: 'foobar' });
hereClient.weather.observation({ name: 'Budapest' });
```