React Native Map4dServices for iOS + Android
npm install react-native-map4d-servicesThe 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.
Get an API key at https://map.map4d.vn/user > Developer > Key
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>Provide access key from ios/Runner/Info.plist
<key>Map4dServicesAccessKey</key>
<string>YOUR_SERVICES_ACCESS_KEY</string>E.g. Auto Suggest
import { fetchSuggestion } from "react-native-map4d-services";
// ...
fetchSuggestion({text: 'abc'})
.then(response => {
console.log('Suggestion:', response);
})