<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>1120</PageWidth>
	<PageHeight>700</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>D:\My Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<startup>slFancyCheckBoxPrimary &quot;CheckBox1&quot;</startup>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="parseData">
					<Code>.....This is very long script, I wanted to use a loop to provide and display multiple results but being new to VisualNEO Web I could not work it out as it works differently to NeoBook where I can use nested variables etc. Even so, It works!

SetVar [mydata] [data]

..Longitude and latitude
SetVar [lat0] [mydata.features(0).geometry.coordinates(1)]
SetVar [lng0] [mydata.features(0).geometry.coordinates(0)]

..Properties
SetVar [name0] [mydata.features(0).properties.name]
SetVar [street0] [mydata.features(0).properties.street]
SetVar [city0] [mydata.features(0).properties.city]
SetVar [county0] [mydata.features(0).properties.county]
SetVar [state0] [mydata.features(0).properties.state]
SetVar [country0] [mydata.features(0).properties.country]
SetVar [kind0] [mydata.features(0).properties.osm_value]

If &quot;[MultiSearch]&quot; == &quot;True&quot;

.Longitude and latitude
   SetVar [lat1] [mydata.features(1).geometry.coordinates(1)]
   SetVar [lng1] [mydata.features(1).geometry.coordinates(0)]

   .Properties
   SetVar [name1] [mydata.features(1).properties.name]
   SetVar [street1] [mydata.features(1).properties.street]
   SetVar [city1] [mydata.features(1).properties.city]
   SetVar [county1] [mydata.features(1).properties.county]
   SetVar [state1] [mydata.features(1).properties.state]
   SetVar [country1] [mydata.features(1).properties.country]
   SetVar [kind1] [mydata.features(1).properties.osm_value]

   .Longitude and latitude
   SetVar [lat2] [mydata.features(2).geometry.coordinates(1)]
   SetVar [lng2] [mydata.features(2).geometry.coordinates(0)]

   .Properties
   SetVar [name2] [mydata.features(2).properties.name]
   SetVar [street2] [mydata.features(2).properties.street]
   SetVar [city2] [mydata.features(2).properties.city]
   SetVar [county2] [mydata.features(2).properties.county]
   SetVar [state2] [mydata.features(2).properties.state]
   SetVar [country2] [mydata.features(2).properties.country]
   SetVar [kind2] [mydata.features(2).properties.osm_value]

   .Longitude and latitude
   SetVar [lat3] [mydata.features(3).geometry.coordinates(1)]
   SetVar [lng3] [mydata.features(3).geometry.coordinates(0)]

   .Properties
   SetVar [name3] [mydata.features(3).properties.name]
   SetVar [street3] [mydata.features(3).properties.street]
   SetVar [city3] [mydata.features(3).properties.city]
   SetVar [county3] [mydata.features(3).properties.county]
   SetVar [state3] [mydata.features(3).properties.state]
   SetVar [country3] [mydata.features(3).properties.country]
   SetVar [kind3] [mydata.features(3).properties.osm_value]

   .Longitude and latitude
   SetVar [lat4] [mydata.features(4).geometry.coordinates(1)]
   SetVar [lng4] [mydata.features(4).geometry.coordinates(0)]

   .Properties
   SetVar [name4] [mydata.features(4).properties.name]
   SetVar [street4] [mydata.features(4).properties.street]
   SetVar [city4] [mydata.features(4).properties.city]
   SetVar [county4] [mydata.features(4).properties.county]
   SetVar [state4] [mydata.features(4).properties.state]
   SetVar [country4] [mydata.features(4).properties.country]
   SetVar [kind4] [mydata.features(4).properties.osm_value]

   .Longitude and latitude
   SetVar [lat5] [mydata.features(5).geometry.coordinates(1)]
   SetVar [lng5] [mydata.features(5).geometry.coordinates(0)]

   .Properties
   SetVar [name5] [mydata.features(5).properties.name]
   SetVar [street5] [mydata.features(5).properties.street]
   SetVar [city5] [mydata.features(5).properties.city]
   SetVar [county5] [mydata.features(5).properties.county]
   SetVar [state5] [mydata.features(5).properties.state]
   SetVar [country5] [mydata.features(5).properties.country]
   SetVar [kind5] [mydata.features(5).properties.osm_value]

   .Longitude and latitude
   SetVar [lat6] [mydata.features(6).geometry.coordinates(1)]
   SetVar [lng6] [mydata.features(6).geometry.coordinates(0)]

   .Properties
   SetVar [name6] [mydata.features(6).properties.name]
   SetVar [street6] [mydata.features(6).properties.street]
   SetVar [city6] [mydata.features(6).properties.city]
   SetVar [county6] [mydata.features(6).properties.county]
   SetVar [state6] [mydata.features(6).properties.state]
   SetVar [country6] [mydata.features(6).properties.country]
   SetVar [kind6] [mydata.features(6).properties.osm_value]

   .Longitude and latitude
   SetVar [lat7] [mydata.features(7).geometry.coordinates(1)]
   SetVar [lng7] [mydata.features(7).geometry.coordinates(0)]

   .Properties
   SetVar [name7] [mydata.features(7).properties.name]
   SetVar [street7] [mydata.features(7).properties.street]
   SetVar [city7] [mydata.features(7).properties.city]
   SetVar [county7] [mydata.features(7).properties.county]
   SetVar [state7] [mydata.features(7).properties.state]
   SetVar [country7] [mydata.features(7).properties.country]
   SetVar [kind7] [mydata.features(7).properties.osm_value]

   .Longitude and latitude
   SetVar [lat8] [mydata.features(8).geometry.coordinates(1)]
   SetVar [lng8] [mydata.features(8).geometry.coordinates(0)]

   .Properties
   SetVar [name8] [mydata.features(8).properties.name]
   SetVar [street8] [mydata.features(8).properties.street]
   SetVar [city8] [mydata.features(8).properties.city]
   SetVar [county8] [mydata.features(8).properties.county]
   SetVar [state8] [mydata.features(8).properties.state]
   SetVar [country8] [mydata.features(8).properties.country]
   SetVar [kind8] [mydata.features(8).properties.osm_value]

   .Longitude and latitude
   SetVar [lat9] [mydata.features(9).geometry.coordinates(1)]
   SetVar [lng9] [mydata.features(9).geometry.coordinates(0)]

   .Properties
   SetVar [name9] [mydata.features(9).properties.name]
   SetVar [street9] [mydata.features(9).properties.street]
   SetVar [city9] [mydata.features(9).properties.city]
   SetVar [county9] [mydata.features(9).properties.county]
   SetVar [state9] [mydata.features(9).properties.state]
   SetVar [country9] [mydata.features(9).properties.country]
   SetVar [kind9] [mydata.features(9).properties.osm_value]


   .....Format data for a complete table with up to 10 results, unfortunatly this fails to populate the table if the result count is lower than 10 results, getting stuck on the empty lat variable with no data available...!!!!

   SetVar &quot;[myResults]&quot; &apos;{&quot;name&quot;:&quot;[name0]&quot;,&quot;street&quot;:&quot;[street0]&quot;,&quot;city&quot;:&quot;[city0]&quot;,&quot;country&quot;:&quot;[country0]&quot;,&quot;kind&quot;:&quot;[kind0]&quot;},{&quot;name&quot;:&quot;[name1]&quot;,&quot;street&quot;:&quot;[street1]&quot;,&quot;city&quot;:&quot;[city1]&quot;,&quot;country&quot;:&quot;[county1]&quot;,&quot;kind&quot;:&quot;[kind1]&quot;},{&quot;name&quot;:&quot;[name2]&quot;,&quot;street&quot;:&quot;[street2]&quot;,&quot;city&quot;:&quot;[city2]&quot;,&quot;country&quot;:&quot;[country2]&quot;,&quot;kind&quot;:&quot;[kind2]&quot;},{&quot;name&quot;:&quot;[name3]&quot;,&quot;street&quot;:&quot;[street3]&quot;,&quot;city&quot;:&quot;[city3]&quot;,&quot;country&quot;:&quot;[county3]&quot;,&quot;kind&quot;:&quot;[kind3]&quot;},{&quot;name&quot;:&quot;[name4]&quot;,&quot;street&quot;:&quot;[street4]&quot;,&quot;city&quot;:&quot;[city4]&quot;,&quot;country&quot;:&quot;[county4]&quot;,&quot;kind&quot;:&quot;[kind4]&quot;},{&quot;name&quot;:&quot;[name5]&quot;,&quot;street&quot;:&quot;[street5]&quot;,&quot;city&quot;:&quot;[city5]&quot;,&quot;country&quot;:&quot;[country5]&quot;,&quot;kind&quot;:&quot;[kind5]&quot;},{&quot;name&quot;:&quot;[name6]&quot;,&quot;street&quot;:&quot;[street6]&quot;,&quot;city&quot;:&quot;[city6]&quot;,&quot;country&quot;:&quot;[county6]&quot;,&quot;kind&quot;:&quot;[kind6]&quot;},{&quot;name&quot;:&quot;[name7]&quot;,&quot;street&quot;:&quot;[street7]&quot;,&quot;city&quot;:&quot;[city7]&quot;,&quot;country&quot;:&quot;[country7]&quot;,&quot;kind&quot;:&quot;[kind7]&quot;},{&quot;name&quot;:&quot;[name8]&quot;,&quot;street&quot;:&quot;[street8]&quot;,&quot;city&quot;:&quot;[city8]&quot;,&quot;country&quot;:&quot;[county8]&quot;,&quot;kind&quot;:&quot;[kind8]&quot;},{&quot;name&quot;:&quot;[name9]&quot;,&quot;street&quot;:&quot;[street9]&quot;,&quot;city&quot;:&quot;[city9]&quot;,&quot;country&quot;:&quot;[county9]&quot;,&quot;kind&quot;:&quot;[kind9]&quot;}&apos;

Else
    ....Format data for just a single result

    SetVar &quot;[myResults]&quot; &apos;{&quot;name&quot;:&quot;[name0]&quot;,&quot;street&quot;:&quot;[street0]&quot;,&quot;city&quot;:&quot;[city0]&quot;,&quot;country&quot;:&quot;[country0]&quot;,&quot;kind&quot;:&quot;[kind0]&quot;}&apos;

EndIf

....Add the [] chars to each end of the results
UnicodeToChar 91 [leftbr]
UnicodeToChar 93 [rightbr]

StrLen &quot;[myResults]&quot; [StrLength]
StrIns &quot;[rightbr]&quot; &quot;[myResults]&quot; [StrLength] [myResults]
StrIns &quot;[leftbr]&quot; &quot;[myResults]&quot; 0 [content]

.ConsoleLog [content]
ParseJSON &quot;[content]&quot; [contentjson]

neoTableSetColumn &quot;Container3&quot; 1 &quot;name&quot; &quot;Name&quot; &quot;&quot; false false false &quot;&quot;
neoTableSetColumn &quot;Container3&quot; 2 &quot;street&quot; &quot;Street&quot; &quot;&quot; false false false &quot;&quot;
neoTableSetColumn &quot;Container3&quot; 3 &quot;city&quot; &quot;City&quot; &quot;&quot; false false false &quot;&quot;
neoTableSetColumn &quot;Container3&quot; 4 &quot;country&quot; &quot;Country&quot; &quot;&quot; false false false &quot;&quot;
neoTableSetColumn &quot;Container3&quot; 5 &quot;kind&quot; &quot;Kind&quot; &quot;&quot; false false false &quot;&quot;
neoTableInitTable &quot;Container3&quot; &quot;en-US&quot; 0 &quot;Table&quot; false false false false false &quot;&quot;
neoTableLoadData &quot;Container3&quot; [contentjson]

......Marker will currently only plot to the first result but if posible it would be nice if it could go to an option selected by user for multi searches.
neoMapAddMarker &quot;Container1&quot; &quot;[address]&quot; &quot;blue&quot; [lat0] [lng0] false &quot;&lt;b&gt;[name0]&lt;/b&gt;&lt;br&gt;[street0]&lt;br&gt;[city0]&lt;br&gt;[county0]&lt;br&gt;[state0]&lt;br&gt;[country0]&lt;br&gt;[kind0]&quot;
neoMapFlyTo &quot;Container1&quot; [lat0] [lng0] 14


.....I&apos;m learning and slowly working things out even though a bit long winded..


....UnicodeToChar numbers
....&quot;[quotemark]&quot; &quot;[#34]&quot;
....&quot;[bracketleft]&quot; &quot;[#91]&quot;
....&quot;[bracketright]&quot; &quot;[#93]&quot;
....&quot;[verticalline]&quot; &quot;[#124]&quot;
....[carriagereturn]&quot; &quot;[#13]&quot;</Code>
					<Params>[data]|STRING|JSON data</Params>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<pageenter>neoMapInitialize &quot;Container1&quot; 45 1 4 18 &quot;Open Street Maps&quot;</pageenter>
					<Components>
						<Container id="Container1">
							<left>10px</left>
							<top>80px</top>
							<width>560px</width>
							<height>600px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
						</Container>
						<PushButton id="PushButton1">
							<left>581px</left>
							<top>15px</top>
							<width>184px</width>
							<height>48px</height>
							<caption>Search</caption>
							<click>StrReplace &quot;[address]&quot; &quot; &quot; &quot;|&quot; [address2] &quot;&quot;
LoadAsyncJSON &quot;https://photon.komoot.io/api/?q=[address2]&quot; &quot;parseData&quot;


.[name]&lt;br&gt;
.[street]&lt;br&gt;
.[city]&lt;br&gt;
.[county]&lt;br&gt;
.[state]&lt;br&gt;
.[country]&lt;br&gt;
.[kind]&lt;br&gt;
.&lt;br&gt;
.[name1]&lt;br&gt;
.[street1]&lt;br&gt;
.[city1]&lt;br&gt;
.[county1]&lt;br&gt;
.[state1]&lt;br&gt;
.[country1]&lt;br&gt;
.[kind1]&lt;br&gt;
.&lt;br&gt;
.[name2]&lt;br&gt;
.[street2]&lt;br&gt;
.[city2]&lt;br&gt;
.[county2]&lt;br&gt;
.[state2]&lt;br&gt;
.[country2]&lt;br&gt;
.[kind2]&lt;br&gt;
.&lt;br&gt;
.[name3]&lt;br&gt;
.[street3]&lt;br&gt;
.[city3]&lt;br&gt;
.[county3]&lt;br&gt;
.[state3]&lt;br&gt;
.[country3]&lt;br&gt;
.[kind3]&lt;br&gt;</click>
						</PushButton>
						<TextInput id="TextInput1">
							<left>10px</left>
							<top>16px</top>
							<width>560px</width>
							<height>48px</height>
							<variable>[address]</variable>
							<place_holder>Enter a City, a Town, a Place Name or a Short Address to Search</place_holder>
						</TextInput>
						<Container id="Container3">
							<left>580px</left>
							<top>80px</top>
							<width>529px</width>
							<height>600px</height>
							<style>background-color:#fff;border-style:solid;border-width:1px;padding-bottom:10px;padding-left:10px;padding-right:10px;padding-top:10px;overflow-x:visible;overflow-y:scroll</style>
							<click>neoTableGetSelectedRowsData &quot;Container3&quot; &quot;[TableClicked]&quot;</click>
						</Container>
						<CheckBox id="CheckBox1">
							<left>1025px</left>
							<top>32px</top>
							<width>17px</width>
							<height>22px</height>
							<variable>[MultiSearch]</variable>
							<true_value>True</true_value>
							<false_value>False</false_value>
						</CheckBox>
						<Headline id="Headline1">
							<left>886px</left>
							<top>32px</top>
							<width>137px</width>
							<height>24px</height>
							<text>Multiple Results:</text>
							<kind>h4</kind>
						</Headline>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>800px</width>
							<height>500px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
