what about the cities with the same name and different location? how should we specify which city we exactly mean in the url by php?

  • 1
  • Question
  • Updated 3 years ago
please help
Photo of mostafa hakimi

mostafa hakimi

  • 2 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of mostafa hakimi

mostafa hakimi

  • 2 Posts
  • 0 Reply Likes
please help me with this?
Photo of Tim Roche

Tim Roche, Official Rep

  • 318 Posts
  • 29 Reply Likes
If you get multiple responses back, you should use the l: parameter

The call 
conditions/q/toronto.json

give you 
[

  • {
    • name: "Toronto",
    • city: "Toronto",
    • state: "IL",
    • country: "US",
    • country_iso3166: "US",
    • country_name: "USA",
    • zmw: "62707.7.99999",
    • l: "/q/zmw:62707.7.99999"
    },

  • {
    • name: "Toronto",
    • city: "Toronto",
    • state: "IA",
    • country: "US",
    • country_iso3166: "US",
    • country_name: "USA",
    • zmw: "52777.2.99999",
    • l: "/q/zmw:52777.2.99999"
    },
.....

for toronto IL

use conditions/q/zmw:62707.7.99999.json