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

Método que retorna la información de los puntos de servicio más cercanos de acuerdo a la ubicación actual ("latitude", "longitude") y al valor en km a la redonda ("distancia") a la cual se desea filtrar. Por ejemplo, para acceder a todos los puntos de servicio a 2km a la redonda de la ubicación latitud:4.609645 longitud:-74.102421 sin tener en cuenta el producto y el filtro de horario se debe hacer el llamado a "api/PuntosServicio/{latitude}/{longitude}/{distancia}/{idproducto}/{abiertos}/{pagina}/{resultadosXpagina}" es decir, api/PuntosServicio/4.609645/-74.102421/2/0/0/0/10 donde los dos primeros parámetros hacen referencia a la latitud y logitud respectivamente y los dos últimos parámetros hacen referencia a la primera página de respuesta y el número de puntos de servicio por página.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

Latitud en grados de la ubicación actual

decimal number

Required

longitude

Longitud en grados de la ubicación actual

decimal number

Required

distancia

Km a la redonda de la ubicación actual. Valor de la distancia en Km

decimal number

Required

idproducto

Id del producto. 0 para omitir el filtro.

integer

Required

abiertos

1 para filtrar por puntos de servicio abiertos en la hora actual. 0 para omitir el filtro.

integer

Required

pagina

número de página de resultados

integer

Required

resultadosXpagina

número de resultados por página

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>