GET api/{latitude}/{longitude}/{distancia}/{idproducto}/{abiertos}/{pagina}/{resultadosXpagina}

Nuevo método que permite obtener la lista de los puntos de servicio por ubicación actual y otros filtros donde el horario de atención ahora se divide en 3 etiquetas: "Lu-Vi", "Sa" y "Do" en vez de mostrar los horarios de los 7 días de la semana. Adicionalmente este método no devuelve puntos de servicio repetidos que tengan la misma latitud y longitud.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

decimal number

Required

longitude

decimal number

Required

distancia

decimal number

Required

idproducto

integer

Required

abiertos

integer

Required

pagina

integer

Required

resultadosXpagina

integer

Required

Body Parameters

None.

Response Information

Resource Description

CustomPaginateResultOfPuntoServicio
NameDescriptionTypeAdditional information
CurrentPage

integer

None.

PageSize

integer

None.

TotalRows

integer

None.

TotalPages

integer

None.

Results

Collection of PuntoServicio

None.

Response Formats

application/json, text/json

Sample:
{
  "CurrentPage": 1,
  "PageSize": 2,
  "TotalRows": 3,
  "TotalPages": 4,
  "Results": [
    {
      "ID_PAIS": 1,
      "ID_CIUDAD": 2,
      "ID_DIVISION": 3,
      "NOMBRE": "sample string 4",
      "DIRECCION": "sample string 5",
      "LONGITUDE": 6.0,
      "LATITUDE": 7.0,
      "TELEFONOS": [
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        },
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        }
      ],
      "HORARIOS": [
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        },
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        }
      ],
      "ID_PARQUEADERO": 64,
      "TIEMPOS_ENTREGA": [
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        },
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        }
      ],
      "PRODUCTOS": [
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        },
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        }
      ]
    },
    {
      "ID_PAIS": 1,
      "ID_CIUDAD": 2,
      "ID_DIVISION": 3,
      "NOMBRE": "sample string 4",
      "DIRECCION": "sample string 5",
      "LONGITUDE": 6.0,
      "LATITUDE": 7.0,
      "TELEFONOS": [
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        },
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        }
      ],
      "HORARIOS": [
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        },
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        }
      ],
      "ID_PARQUEADERO": 64,
      "TIEMPOS_ENTREGA": [
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        },
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        }
      ],
      "PRODUCTOS": [
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        },
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        }
      ]
    }
  ]
}

text/html

Sample:
{"CurrentPage":1,"PageSize":2,"TotalRows":3,"TotalPages":4,"Results":[{"ID_PAIS":1,"ID_CIUDAD":2,"ID_DIVISION":3,"NOMBRE":"sample string 4","DIRECCION":"sample string 5","LONGITUDE":6.0,"LATITUDE":7.0,"TELEFONOS":[{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"},{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"}],"HORARIOS":[{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"},{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"}],"ID_PARQUEADERO":64,"TIEMPOS_ENTREGA":[{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"},{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"}],"PRODUCTOS":[{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"},{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"}]},{"ID_PAIS":1,"ID_CIUDAD":2,"ID_DIVISION":3,"NOMBRE":"sample string 4","DIRECCION":"sample string 5","LONGITUDE":6.0,"LATITUDE":7.0,"TELEFONOS":[{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"},{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"}],"HORARIOS":[{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"},{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"}],"ID_PARQUEADERO":64,"TIEMPOS_ENTREGA":[{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"},{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"}],"PRODUCTOS":[{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"},{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"}]}]}

application/xml, text/xml

Sample:
<CustomPaginateResultOfPuntoServiciojgJke3Dh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CDSFiltered.Models.Extentions">
  <CurrentPage>1</CurrentPage>
  <PageSize>2</PageSize>
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/CDSFiltered.Models">
    <d2p1:PuntoServicio>
      <d2p1:DIRECCION>sample string 5</d2p1:DIRECCION>
      <d2p1:HORARIOS>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
      </d2p1:HORARIOS>
      <d2p1:ID_CIUDAD>2</d2p1:ID_CIUDAD>
      <d2p1:ID_DIVISION>3</d2p1:ID_DIVISION>
      <d2p1:ID_PAIS>1</d2p1:ID_PAIS>
      <d2p1:ID_PARQUEADERO>64</d2p1:ID_PARQUEADERO>
      <d2p1:LATITUDE>7</d2p1:LATITUDE>
      <d2p1:LONGITUDE>6</d2p1:LONGITUDE>
      <d2p1:NOMBRE>sample string 4</d2p1:NOMBRE>
      <d2p1:PRODUCTOS>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
      </d2p1:PRODUCTOS>
      <d2p1:TELEFONOS>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
      </d2p1:TELEFONOS>
      <d2p1:TIEMPOS_ENTREGA>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
      </d2p1:TIEMPOS_ENTREGA>
    </d2p1:PuntoServicio>
    <d2p1:PuntoServicio>
      <d2p1:DIRECCION>sample string 5</d2p1:DIRECCION>
      <d2p1:HORARIOS>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
      </d2p1:HORARIOS>
      <d2p1:ID_CIUDAD>2</d2p1:ID_CIUDAD>
      <d2p1:ID_DIVISION>3</d2p1:ID_DIVISION>
      <d2p1:ID_PAIS>1</d2p1:ID_PAIS>
      <d2p1:ID_PARQUEADERO>64</d2p1:ID_PARQUEADERO>
      <d2p1:LATITUDE>7</d2p1:LATITUDE>
      <d2p1:LONGITUDE>6</d2p1:LONGITUDE>
      <d2p1:NOMBRE>sample string 4</d2p1:NOMBRE>
      <d2p1:PRODUCTOS>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
      </d2p1:PRODUCTOS>
      <d2p1:TELEFONOS>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
      </d2p1:TELEFONOS>
      <d2p1:TIEMPOS_ENTREGA>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
      </d2p1:TIEMPOS_ENTREGA>
    </d2p1:PuntoServicio>
  </Results>
  <TotalPages>4</TotalPages>
  <TotalRows>3</TotalRows>
</CustomPaginateResultOfPuntoServiciojgJke3Dh>