Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 880 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 880 Bytes

Webhook

Normalize name estados, municipios

And get lat and lon base on corner

The webhook expose three directions:

  • edo: Return correct state name. Parameters:

    • nombre : State name

    /edo/?nombre=@flow.response1

  • mun: Search municipio base on state. Parameters:

    • estado: Number of state, returned it in edo query
    • nombre : Municipio name

    /mun/?estado=@contact.rp_state_number&nombre=@flow.response2

  • corner:Return lat and long base on two streets and municipio. Parameters:

    • street_a: First street
    • street_b: Second street
    • municipio: Municipio name

    /corner/?street_a=@flow.response3&street_b=@flow.response4&municipio=@contact.rp_municipio

  • country: Return correct country name. Parameters:

    • nombre : Country name
    • lng : One of [spa","eng","hol","por"]

    /country/?nombre=@flow.response1&lng=spa