Discussions

Ask a Question
Back to All

property/geo_data dejo de funcionar correctamente

Hola, ya tenia hecho un mapa interactivo usando este endpoint.
Hoy veo que pasan algunas cosas:

  • No trae propiedades a menos que se le pase el "operation_types". Anteriormente si listaba todas sin pasarle ese dato, o sea, operation_types vacio igual a todos los tipos.
  • Solo esta retornando 10 elementos como máximo. En otras consultas que he tenido me dijeron que no hay limite, igual que el summary. Pero además antes si estaba tirando todos.
  • La misma url de endpoint, si uno recarga varias veces, lista diferente, ej abajo.

Esta url: http://tokkobroker.com/api/v1/property/geo_data/?format=json&key=xxxxxxx&lang=es_ar&data={"current_localization_id":0,"current_localization_type":"country","price_from":0,"price_to":9999999999,"operation_types":"","property_types":"","filters":[],"with_tags":[],"without_tags":[],"with_custom_tags":[],"with_or_custom_tags":[],"without_custom_tags":[]}
No da resultados

Si pongo asi: http://tokkobroker.com/api/v1/property/geo_data/?format=json&key=xxxxxxx&lang=es_ar&data={"current_localization_id":0,"current_localization_type":"network","price_from":0,"price_to":9999999999,"operation_types":["1"],"property_types":"","filters":[],"with_tags":[],"without_tags":[],"with_custom_tags":[],"with_or_custom_tags":[],"without_custom_tags":[]}

Me devuelve 10 items solamente, deberia retornar 39 elementos.
Ademas si uno recarga la pagina varias veces, al azar quedan otros items o en otro órden.

Como tampoco hay referencia al respecto de este endpoint, no se que hacer.
Notese que puse "current_localization_type":"network", ya que estaba probando a ver si usando los mismos params que usa la app internamente, pero da igual si ahi uso country. Me refiero al mapa que vemos en https://www.tokkobroker.com/properties/?map=true donde si se muestran todas las propiedades.

Esa pagina cuando muestra todas las propiedades en el mapa, usa esta url:
www.tokkobroker.com/properties/?search_options={"filters":[],"only_available":"checked","only_reserved":"undefined","only_to_be_cotized":"undefined","only_not_available":"undefined","with_tags":[],"without_tags":[],"with_custom_tags":[],"with_or_custom_tags":[],"without_custom_tags":[],"division_filters":[],"state_filters":[],"current_localization_id":"0","current_localization_type":"","network":[],"price_from":"0","price_to":"9999999999","operation_types":[],"property_types":[],"currency":"USD","bounding_box":[],"map":"true"}

Incluso use estos mismos params, cambiando obviamente "search_options" por "data", o sea asi (con operation_types para que me devuelva algo):
https://tokkobroker.com/api/v1/property/geo_data/?format=json&key=xxxxxxx&lang=es_ar&data={"filters":[],"only_available":"checked","only_reserved":"undefined","only_to_be_cotized":"undefined","only_not_available":"undefined","with_tags":[],"without_tags":[],"with_custom_tags":[],"with_or_custom_tags":[],"without_custom_tags":[],"division_filters":[],"state_filters":[],"current_localization_id":"0","current_localization_type":"","network":[],"price_from":"0","price_to":"9999999999","operation_types":["1"],"property_types":[],"currency":"USD","bounding_box":[],"map":"true"}
Lo mismo, solo devuelve 10 y no todos. Y tambien, si no le paso operation_types, no devuelve nada.

Por favor de revisar.