For the complete documentation index, see llms.txt. This page is also available as Markdown.

Obtain distance from a section

curl https://mburger.cloud/api/blocks/<id>/sections?distance=latitude,longitude
-H "Accept: application/json" 
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
struct LocationParamter: MBParameter {
    let location: CLLocationCoordinate2D!
    
    func parameterRepresentation() -> [String: Any] {
        return [
            "latitude": location.latitude,
            "longitude": location.longitude
        ]
    }
}


...

let locationParameter = LocationParamter(location: CLLocationCoordinate2D(lat, lng))
MBClient.getSection(withId: SECTION_ID,
                    parameters: [locationParameter],
                    success: { section in
                                
                    },
                    failure: { error in
                                
                    })      

Last updated