I was trying to get my ahead around how to have a LocationDetails screen which contained different contents depending on the context. I settled on passing in the data as JSON as part of the navigation This appears to work well and it should be possible to extend it to cope with whatever we need for this screen.
The only thing it threw up was that on iOS the LocationDetails screen has a description of the location generated from the tile data e.g. "Near to Roselea Drive" or details about the bus stop. This is true even when the location details describe a search from Apple Maps e.g.
Near Stewart Street
1.15km SW
Near 40 Stewart Street, Glasgow, Scotland, G62 6BY
This means that at some point the tiles around the location must have been pulled down and analyzed. I'd hope it's down live i.e. it's not fetched once and then put in the database, but I don't know for sure.
I'm now using the LocationDetails screen as a landing page for intents from other apps i.e. geo:, soundscape: and google maps location sharing. This seems to work okay!
I was trying to get my ahead around how to have a LocationDetails screen which contained different contents depending on the context. I settled on passing in the data as JSON as part of the navigation This appears to work well and it should be possible to extend it to cope with whatever we need for this screen.
The only thing it threw up was that on iOS the LocationDetails screen has a description of the location generated from the tile data e.g. "Near to Roselea Drive" or details about the bus stop. This is true even when the location details describe a search from Apple Maps e.g.
Near Stewart Street 1.15km SW Near 40 Stewart Street, Glasgow, Scotland, G62 6BY
This means that at some point the tiles around the location must have been pulled down and analyzed. I'd hope it's down live i.e. it's not fetched once and then put in the database, but I don't know for sure.
I'm now using the LocationDetails screen as a landing page for intents from other apps i.e.
geo:
,soundscape:
and google maps location sharing. This seems to work okay!