我们可以使用实时坐标来操纵Google Directions Package吗?

时间:2018-08-25 10:29:23

标签: android ios react-native

import { Linking } from 'react-native';
const url = `https://www.google.com/maps/dir/?api=1&${getParameterString(params)}`
return Linking.canOpenURL(url).then(supported => {
    if (!supported) {
        return Promise.reject(new Error(`Could not open the url: ${url}`))
    } else {
        return Linking.openURL(url)
    }
})

0 个答案:

没有答案