使用Parse查找用户的当前位置并将其保存在Parse数据库中

时间:2015-06-12 00:11:17

标签: ios swift dictionary parse-platform location

对不起,这是一个新手问题。我已经关注了PFGeopoints的Parse文档,但我不认为我做对了。我应该把这一行放在哪里:placeObject [" location"] = point

我的目标是: 1.查找USER的当前地址。 2.在地图上显示带有图钉的位置并写在标签上。 3.将用户的地址转移到Parse

请帮忙!

以下是代码:

def post(self,request,*args,**kwargs):
        buscar_predio = request.POST['nombre_predio']
        query1 = InfoPredioGeneral.objects.filter(nombre_predio__iexact=buscar_predio)
        if query1:
            ctx  = {'predio':query1}
            return render(request,'resultados_busqueda.html',ctx)
        else:
            return render(request,'resultados_busqueda.html')

0 个答案:

没有答案