Documentation Complète
Guide du Développeur
PoI - Navigoo
API REST & Bibliothèque React Native pour intégrer la cartographie du Cameroun dans vos applications
Sommaire
Démarrage Rapide
Intégrez Navigoo en 5 minutes
1
Créer un compte
Inscrivez-vous gratuitement sur navigoo.cm
# Créez votre organisation
curl -X POST https://api.navigoo.cm/api/organizations \
-H "Content-Type: application/json" \
-d '{
"organizationName": "Ma Super App",
"orgType": "MERCHANT",
"orgCode": "MYAPP001"
}'2
Obtenir votre clé API
Authentifiez-vous et récupérez votre token
# Login
curl -X POST https://api.navigoo.cm/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "votre@email.cm",
"password": "VotreMotDePasse123!"
}'
# Réponse
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600
}3
Installer le SDK
Installation pour Ubuntu/Linux
# Installation globale
sudo npm install -g navigoo-sdk
# Ou installation locale
npm install navigoo-sdk --save4
Premier appel API
Récupérez vos premiers POIs
import { NavigooClient } from 'navigoo-sdk';
const client = new NavigooClient({
apiKey: 'VOTRE_TOKEN_JWT'
});
// Récupérer les POIs de Yaoundé
const pois = await client.getPOIs({
city: 'Yaoundé',
category: 'RESTAURANT',
limit: 10
});
console.log(`${pois.length} restaurants trouvés`);