我需要知道设备的当前地理位置。
场景:如果我在US..:
my device location should be US
与我在UK中的情况相同:
my device location should be UK
我需要用于查找此地理位置的示例代码。(location determined by Network Location Provider)
我正在尝试通过node.js和express建立一个应用程序,可以获取在某个地理位置(地区)拍摄的图片。但是,我不知道如何创建地理订阅id。根据Instagram API,此ID是唯一的,并为每个地理位置订阅创建。
有人能帮上忙吗?
每次我输入经度、纬度和半径时,我都会在命令行中收到来自Instagram的错误消息:APInotfounderror: this geography does not exist in request。
我想使用地理位置和方向函数,但有google is not defined错误。代码如下:
function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = "https://maps.googleapis.com/maps/api/js?key=mykey&sensor=true" + "&a