Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
deleted 13 characters in body; edited tags; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Services 3 andnode Locationsand node locations

I'm trying to create a node via services 3 (drupalin Drupal 7). The node getos created ok, but when I try to pass the location parameters in, it does not work. If I pass an 'lid'lid that already exists, it seems to reference that location. butlocation; if I try to pass a new 'lid'lid, the information doesis not registerregistered. Is

Is there such thing as a location resource for the services module? hereTHis is the JSON string I am using.

{
"title":"test",
"type":"test_type",
"locations":[
      {
         "lid":"4",
         "name":"",
         "street":"",
         "additional":"",
         "city":"",
         "province":"",
         "postal_code":"",
         "country":"us",
         "latitude":"40.663062",
         "longitude":"-73.969760",
         "source":"1",
         "is_primary":"0",
          "locpick":{
            "user_latitude":"40.663061",
            "user_longitude":"-73.969760"
         },
         "province_name":"",
         "country_name":"United States"
      }
   ],
}

Services 3 andnode Locations

I'm trying to create a node via services 3 (drupal 7). The node get created ok, but when I try to pass the location parameters in, it does not work. If I pass an 'lid' that already exists, it seems to reference that location. but if I try to pass a new 'lid' the information does not register. Is there such thing as a location resource for the services module? here is the JSON string I am using.

{
"title":"test",
"type":"test_type",
"locations":[
      {
         "lid":"4",
         "name":"",
         "street":"",
         "additional":"",
         "city":"",
         "province":"",
         "postal_code":"",
         "country":"us",
         "latitude":"40.663062",
         "longitude":"-73.969760",
         "source":"1",
         "is_primary":"0",
          "locpick":{
            "user_latitude":"40.663061",
            "user_longitude":"-73.969760"
         },
         "province_name":"",
         "country_name":"United States"
      }
   ],
}

Services 3 and node locations

I'm trying to create a node via services 3 in Drupal 7. The node os created, but when I try to pass the location parameters in, it does not work. If I pass an lid that already exists, it seems to reference that location; if I try to pass a new lid, the information is not registered.

Is there such thing as a location resource for the services module? THis is the JSON string I am using.

{
"title":"test",
"type":"test_type",
"locations":[
      {
         "lid":"4",
         "name":"",
         "street":"",
         "additional":"",
         "city":"",
         "province":"",
         "postal_code":"",
         "country":"us",
         "latitude":"40.663062",
         "longitude":"-73.969760",
         "source":"1",
         "is_primary":"0",
          "locpick":{
            "user_latitude":"40.663061",
            "user_longitude":"-73.969760"
         },
         "province_name":"",
         "country_name":"United States"
      }
   ],
}
Source Link
user379468
  • 2.5k
  • 3
  • 31
  • 49

Services 3 andnode Locations

I'm trying to create a node via services 3 (drupal 7). The node get created ok, but when I try to pass the location parameters in, it does not work. If I pass an 'lid' that already exists, it seems to reference that location. but if I try to pass a new 'lid' the information does not register. Is there such thing as a location resource for the services module? here is the JSON string I am using.

{
"title":"test",
"type":"test_type",
"locations":[
      {
         "lid":"4",
         "name":"",
         "street":"",
         "additional":"",
         "city":"",
         "province":"",
         "postal_code":"",
         "country":"us",
         "latitude":"40.663062",
         "longitude":"-73.969760",
         "source":"1",
         "is_primary":"0",
          "locpick":{
            "user_latitude":"40.663061",
            "user_longitude":"-73.969760"
         },
         "province_name":"",
         "country_name":"United States"
      }
   ],
}