react-native-map4d-services-dtqg
v0.1.0
Published
React Native Map4dServices DTQG for iOS + Android
Readme
react-native-map4d-services-dtqg
React Native Map4dServices DTQG for iOS + Android
Installation
npm install react-native-map4d-services-dtqgSetup API key
The API key is a unique identifier that authenticates requests associated with your project for usage and billing purposes. You must have at least one API key associated with your project.
Android
Provide access key from android/app/src/main/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<meta-data
android:name="vn.map4d.services.ACCESS_KEY"
android:value="YOUR_SERVICES_ACCESS_KEY"/>
</application>
</manifest>iOS
Provide access key from ios/Runner/Info.plist
<key>Map4dServicesAccessKey</key>
<string>YOUR_SERVICES_ACCESS_KEY</string>Usage
E.g. Auto Suggest
import { fetchSuggestion } from "react-native-map4d-services-dtqg";
// ...
fetchSuggestion({text: 'abc'})
.then(response => {
console.log('Suggestion:', response);
})