Browse Source

Locator (web)

netico 2 years ago
parent
commit
92bb380c1b
2 changed files with 8 additions and 2 deletions
  1. 1 1
      OSM/Locator/web/smarty/template/locator.tpl
  2. 7 1
      OSM/README.md

+ 1 - 1
OSM/Locator/web/smarty/template/locator.tpl

@@ -36,7 +36,7 @@
 	<main style="max-width: 350pt; margin: auto;">
 		<form onsubmit="return false" class="m-5">
 			<h1 class="h1">{$title}</h1>
-			<span>Powered by <a href="https://www.openstreetmaps.org">OpenStreetMaps</a>.</span>
+			<span>Powered by <a href="https://www.openstreetmap.org">OpenStreetMap</a>.</span>
 			<div class="form-floating mt-4">
 				<input class="form-control" id="address" name="address" type="text" placeholder="Craven Road 7, London" required autofocus>
 				<label for="address">Address</label>

+ 7 - 1
OSM/README.md

@@ -12,7 +12,7 @@ Take a look at the [OpenLayers](https://git.lattuga.net/netico/code-library/src/
 
 It uses the **OpenLayers** library, which makes it easy to put a dynamic map on any web page. It is a completely free library, released under the 2-clause BSD license.
 
-In the example found here, the address data (latitude and longitude) is read from a **CSV file**. A CSV (comma-separated values) file is a delimited text file that uses a comma to separate values. Each line in the file is a data record. Each record consists of one or more fields, separated by commas.
+In the example found here, the address data (latitude and longitude) is read from a [CSV file](https://git.lattuga.net/netico/code-library/src/master/OSM/Locator/input.csv). A CSV (comma-separated values) file is a delimited text file that uses a comma to separate values. Each line in the file is a data record. Each record consists of one or more fields, separated by commas.
 
 ## Get geolocated addresses
 
@@ -31,6 +31,12 @@ Also shows how to use PHP code in a bash script.
     "Example #2", 45.4865452, 9.1899719
     ...
 
+### Web interface
+
+If you prefer, there is a [web interface](https://git.lattuga.net/netico/code-library/src/master/OSM/Locator/web/locator.php) to [OpenStreetMap](https://www.openstreetmap.org)'s Nominatim service.
+
+![Locator](locator.png)
+
 ## So, how to embed the map in a web page?
 
 The **iframe** tag is a good starting point. See <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe>.