beckn / transactional-ai-bap

MIT License
6 stars 4 forks source link

Bug: strapi returns providers of different country when searched with GPS location of yellowstone national park #46

Closed mayurvir closed 6 months ago

mayurvir commented 6 months ago

Description

Location filters not getting applied in BPP

Goals

Expected Outcome

All goals must pass

Acceptance Criteria

All goals must pass.

Implementation Details

My curl:

curl --location 'https://mit-ps-bap-client.becknprotocol.io/search' \
--header 'Content-Type: application/json' \
--data '{
    "context": {
        "domain": "uei:charging",
        "transaction_id": "a9aaecca-10b7-4d19-b640-b047a7c62196",
        "message_id": "8aafd2f5-8ee8-4b22-8f15-477337a8ad3d",
        "action": "search",
        "timestamp": "2023-05-25T05:23:03.443Z",
        "version": "1.1.0",
        "bap_uri": "https://mit-ps-bap.becknprotocol.io",
        "bap_id": "mit-ps-bap.becknprotocol.io",
        "ttl": "PT10M"
    },
    "message": {
        "intent": {
            "provider": {
                "locations": [
                    {
                        "circle": {
                            "gps": "44.4280, -110.584389",
                            "radius": {
                                "type": "CONSTANT",
                                "value": "30",
                                "unit": "miles"
                            }
                        }
                    }
                ]

            }

            }
        }
    }'

Response:

Image

If you notice, the provider is from Bangalore.

Mockups / Wireframes

[Include links to any visual aids, mockups, wireframes, or diagrams that help illustrate what the final product should look like. This is not always necessary, but can be very helpful in many cases.]


[Please note that the below section of the ticket has to be in the format as mentioned as it is key to enabling proper listing of the project. Please only choose the options mentioned under the headings wherever applicable.]

Product Name

[Product Name: For eg: Beckn, Sunbird Obsrv etc]

Project Name

[Project Name: Descriptive of the ticket]

Organization Name:

[Organization Name]

Domain

[Area of governance]

Tech Skills Needed:

[Required technical skills for the project]

Complexity

Pick one of [High]/[Medium]/[Low]

Category

Pick one or more of [CI/CD], [Integrations], [Performance Improvement], [Security], [UI/UX/Design], [Bug], [Feature], [Documentation], [Deployment], [Test], [PoC]

Sub Category

Pick one or more of [API], [Database], [Analytics], [Refactoring], [Data Science], [Machine Learning], [Accessibility], [Internationalization], [Localization], [Frontend], [Backend], [Mobile], [SEO], [Configuration], [Deprecation], [Breaking Change], [Maintenance], [Support], [Question], [Technical Debt], [Beginner friendly], [Research], [Reproducible], [Needs Reproduction].

pri233 commented 6 months ago

@em-abee Please close this if the issue is resolved