ntxuva/ntxuva-7.x-1.0-beta2

API requests don't have the address details filled

Closed this issue · 2 comments

Hi all,

Some requests returned from the API endpoint http://mopa.co.mz/georeport/v2/ don't have the address details filled. For instance the requests bellow differ as the first one contains only the latitude and longitude fields, but no address, whilst the last one has all of them.

{
        "agency_responsible": "DMGRSUS",
        "description": "null",
        "lat": -25.8283,
        "long": 32.6008,
        "requested_datetime": "2015-07-03T16:46:36+02:00",
        "service_code": "04",
        "service_name": "Tchova n\u00e3o passou",
        "service_notice": "Registado",
        "service_request_id": "1527638",
        "status": "open",
        "updated_datetime": "2015-07-03T16:46:36+02:00",
        "zipcode": null
    },
{
        "address": "Avenida Acordos de Lusaka,  Urbaniza\u00e7\u00e3o, Distrito Urbano de KaMaxaquene, Cidade de Maputo",
        "agency_responsible": "DMGRSUS",
        "lat": -25.94176033042,
        "long": 32.579076290131,
        "media_url": "http://mopa.co.mz/sites/default/files/IMG_20150702_131018.jpg",
        "neighbourhood": "Urbaniza\u00e7\u00e3o, Distrito Urbano de KaMaxaquene",
        "requested_datetime": "2015-07-02T13:23:17+02:00",
        "service_code": "01",
        "service_name": "Cami\u00e3o n\u00e3o recolheu o contentor",
        "service_notice": "Registado",
        "service_request_id": "1527637",
        "status": "open",
        "updated_datetime": "2015-07-02T13:23:17+02:00",
        "zipcode": null
    },

I have interest in having the address filled in all requests as this information is required in to produce the daily report sent to the municipal authorities. Bellow is a sample of one of these reports and we can see that the district and neighborhood fields are empty due to this.
screen shot 2015-07-21 at 11 26 16 am

Finally, I'd like to request this issue to be fixed or alternatively be provided and additional API endpoint whereby I could get the district and neighborhood based on the latitude and longitude.

You'll have the information you need on the location_id field according to
ntxuva locations' API:

https://docs.google.com/document/d/1oTCFb_mOc9W_t90c6eFwG3TcMSh8vzAq3Qi_7rkoe0g/edit?usp=sharing

Being changed on the USSD code by Valter.

Jean Barroca

On 21 July 2015 at 10:29, Paulo Phagula notifications@github.com wrote:

Hi all,

Some requests returned from the API endpoint
http://mopa.co.mz/georeport/v2/ http://mopa.co.mz/georeport/v2/ don't
have the address details filled. For instance the requests bellow differ as
the first one contains only the latitude and longitude fields, but no
address, whilst the last one has all of them.

{
"agency_responsible": "DMGRSUS",
"description": "null",
"lat": -25.8283,
"long": 32.6008,
"requested_datetime": "2015-07-03T16:46:36+02:00",
"service_code": "04",
"service_name": "Tchova n\u00e3o passou",
"service_notice": "Registado",
"service_request_id": "1527638",
"status": "open",
"updated_datetime": "2015-07-03T16:46:36+02:00",
"zipcode": null
},

{
"address": "Avenida Acordos de Lusaka, Urbaniza\u00e7\u00e3o, Distrito Urbano de KaMaxaquene, Cidade de Maputo",
"agency_responsible": "DMGRSUS",
"lat": -25.94176033042,
"long": 32.579076290131,
"media_url": "http://mopa.co.mz/sites/default/files/IMG_20150702_131018.jpg",
"neighbourhood": "Urbaniza\u00e7\u00e3o, Distrito Urbano de KaMaxaquene",
"requested_datetime": "2015-07-02T13:23:17+02:00",
"service_code": "01",
"service_name": "Cami\u00e3o n\u00e3o recolheu o contentor",
"service_notice": "Registado",
"service_request_id": "1527637",
"status": "open",
"updated_datetime": "2015-07-02T13:23:17+02:00",
"zipcode": null
},

I have interest in having the address filled in all requests as this
information is required in to produce the daily report sent to the
municipal authorities. Bellow is a sample of one of these reports and we
can see that the district and neighborhood fields are empty due to
this.
[image: screen shot 2015-07-21 at 11 26 16 am]
https://cloud.githubusercontent.com/assets/6130991/8797394/594e72b6-2f9b-11e5-8989-a8980ae0321a.png

Finally, I'd like to request this issue to be fixed or alternatively be
provided and additional API endpoint whereby I could get the district
and neighborhood based on the latitude and longitude.


Reply to this email directly or view it on GitHub
#3.

Change has been implemented and information is being used.