I’m currently building an event map of type “Park / Outdoor Event” that includes many separate buildings and outdoor areas. I have imported and set up multiple buildings in the Web SDK and am now trying to implement wayfinding between them.
I have encountered an issue with using getDirections or getDirectionsMultiDestination — it seems that when I try to generate directions from one building to another, the navigation is always undefined. When I test navigation with a single building, the route is found correctly, so the problem seems specific to multi-building scenarios.
My questions are:
Is there any way to draw a route from one building to another in the SDK, ideally following real pedestrian routes or outdoor paths (e.g. based on OpenStreetMap or similar)? I have not found any built-in mechanism in the Web SDK that supports outdoor routing combined with indoor navigation.
Should I rethink my map design and instead use a single building that contains all buildings/areas/markers for the event, so that the internal wayfinding works reliably? Or is it supported and recommended to stay with a multi-building format?
I’m trying to avoid overly complex workarounds if possible, and would appreciate any recommendations on how to best structure the map for seamless navigation between buildings and outdoor zones.
Mappedin actually uses OpenStreetMap for its outdoor map and outdoor pathing. It should make use of the sidewalks and pathing on that map. If this is an area that hasn’t been updated in OpenStreetMap, you could make those edits there and then they’ll become available to Mappedin. Note that you’ll need to make a Mappedin map update for your map to pick up the new OpenStreetMap routing.
This would be the best solution. Mapping it as an entire building would ignore the outdoor context and just use the most direct path (i.e. ignore sidewalks).
I checked OpenStreetMap to make sure that the outdoor paths and sidewalks for this area are properly mapped, and it appears that the pedestrian paths are already present.
However, I noticed something interesting while testing the map.
When I share the map or run it through my developer build using the Web SDK, the directions between buildings do not work. The routing either fails or cannot generate a path between buildings.
But when I use the “Preview Directions” mode in the Mappedin web application, the routes work correctly and navigation between buildings is generated successfully.
Both the preview and Mappedin SDKs should behave the same in regards to routing. The only difference would be during map edits, what the SDKs reads may lag slightly compared to what is shown in the preview. So if you don’t see the same thing after waiting a few minutes from making changes please send me your map ID so I can look into this, either posting here or sending to me in a direct message.
As you can see, the pedestrian paths and roads between the buildings are already mapped in OSM.
When I modify the map, I sometimes see the message “We’re still working on publishing some of your buildings”
and it appears to stay there indefinitely, as if the publishing process never completes.