Genere un recorrido a pie por edificios notables
Use GeoNearest para recuperar edificios notables en un radio de 1 km alrededor del Ayuntamiento de Boston.
In[1]:=
![Click for copyable input](assets.es/generate-a-walking-tour-of-notable-buildings/In_49.png)
position = Entity["Building", "BostonCityHall::96t3t"];
radius = Quantity[1, "Kilometers"];
In[2]:=
![Click for copyable input](assets.es/generate-a-walking-tour-of-notable-buildings/In_50.png)
nearMe = GeoNearest["Building", position, {All, radius}]
Out[2]=
![](assets.es/generate-a-walking-tour-of-notable-buildings/O_33.png)
Represente gráficamente esos edificios en un mapa local, usando las entidades ícono incorporadas.
muestre la entrada completa de Wolfram Language
Out[3]=
![](assets.es/generate-a-walking-tour-of-notable-buildings/O_34.png)
Use TravelDirections para calcular un recorrido a pie de esas entidades.
In[4]:=
![Click for copyable input](assets.es/generate-a-walking-tour-of-notable-buildings/In_52.png)
tourPlaces = Prepend[nearMe, position];
In[5]:=
![Click for copyable input](assets.es/generate-a-walking-tour-of-notable-buildings/In_53.png)
{distance, tourPath} =
FindShortestTour[GeoPosition /@ tourPlaces, 1, Length@tourPlaces]
Out[5]=
![](assets.es/generate-a-walking-tour-of-notable-buildings/O_35.png)
In[6]:=
![Click for copyable input](assets.es/generate-a-walking-tour-of-notable-buildings/In_54.png)
travelDirectionsForPath =
TravelDirections[tourPlaces[[tourPath]], TravelMethod -> "Walking"]
Out[6]=
![](assets.es/generate-a-walking-tour-of-notable-buildings/O_36.png)
muestre la entrada completa de Wolfram Language
Out[7]=
![](assets.es/generate-a-walking-tour-of-notable-buildings/O_37.png)
Estas son instrucciones detalladas de cómo seguir la ruta.
In[8]:=
![Click for copyable input](assets.es/generate-a-walking-tour-of-notable-buildings/In_56.png)
travelDirectionsForPath["ManeuverGrid"]
Out[8]=
![](assets.es/generate-a-walking-tour-of-notable-buildings/O_38.png)