Bilo: business directions widget — integration instructions for humans and AI agents Version 1 Configurator: https://bilo.ro/widget Machine-readable specification: https://bilo.ro/widget-integration.json PURPOSE Place “Cum ajungi la noi?” on a business website. The destination is the business's exact, owner-confirmed point, not just its city. Visitors select their departure manually or explicitly request browser location. Train and coach results open in Bilo with a separately estimated last walking leg when the actual arrival station has a verified position. This is not a local bus/tram/metro planner and does not guarantee a direct service or a ticket. 1. CONFIRM THE DESTINATION Ask the owner for the public business name, street, building number, locality and county. The configurator sets the country to Romania. Find the address, then select the matching result: its map pin appears immediately. Use the resulting iframe code. If the building cannot be found, correct the address; never substitute a city center, another business or guessed coordinates. Do not retain example coordinates. 2. ADD THE IFRAME For WordPress, use a Custom HTML block; for a visual site builder, use its HTML/Embed component. In React, render an iframe element. In plain HTML, paste the generated snippet in the requested contact/location section. No account, SDK, npm package or developer API key is required. The iframe URL is https://bilo.ro/widget/embed with these query parameters: business (1–100 characters), address (1–300), lat (-90..90), lon (-180..180), placeSource (owner | google_maps_link | geoapify). Optional: title (up to 80), mode (all | rail | bus), layout (card | compact), lang (ro | en). Defaults are all, card, ro. Use URLSearchParams to encode public business configuration; never concatenate unescaped user input into HTML. HTML-escape the URL's & as & in markup. Attributes to preserve: width="100%" height="620" (card) or height="520" (compact) allow="geolocation https://bilo.ro" referrerpolicy="no-referrer" loading="lazy" title="Cum ajungi la noi? — Bilo" style="border:0;border-radius:16px;max-width:100%" In JSX use referrerPolicy. Preserve visible Bilo credit below the iframe. Keep the parent container responsive; do not constrain it below mobile width. Long addresses or browser font scaling can require more iframe height; keep scrolling available instead of clipping the contents. 3. HOST HEADERS AND LOCATION Browser location requires a secure context, the visitor's consent and the host's permission. If the site has a restrictive Content-Security-Policy, its frame-src must permit https://bilo.ro. If it sets Permissions-Policy, geolocation must delegate to https://bilo.ro, for example: Permissions-Policy: geolocation=(self "https://bilo.ro") The iframe allow attribute cannot override a restrictive host policy. Report required header changes to the site owner; preserve unrelated rules. Do not add a sandbox by default. If a host requires one, preserve scripts, same-origin and user-activated navigation to a new tab; test location separately. Manual departure and opening Bilo directly remain the fallback. PRIVACY Do not ask for visitor GPS automatically, collect it on the embedding page, put it in iframe query parameters, store it, log it or send it to AI/analytics. Bilo requests it only after the visitor presses the location button and does not postMessage it to the parent site. Walking-route requests use Geoapify / OpenStreetMap; estimates remain separate from published transport times. Owner-facing drafts store only business configuration in sessionStorage. ACCEPTANCE CHECKS - Confirm that the visible business and address match the owner's choice. - At 360px and desktop widths, check controls, iframe overflow and new-tab search. - Enter a departure and date; results must open inside Bilo's directions page. - Check location-denied behavior with mocked permissions; manual departure works. - Verify final walking routes use actual verified stops, not locality centroids. - Never request a tester's real GPS during automated checks. The widget's internal geocoding/walking helpers are not a bulk API. This integration does not require or change the existing HTTP v1 or MCP contract.