mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
46 lines
989 B
Plaintext
46 lines
989 B
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Cartagen Geocoding</title>
|
|
<style type="text/css" media="screen">
|
|
body {
|
|
font-family:georgia;
|
|
font-size:1.5em;
|
|
}
|
|
input#location {
|
|
font-size:1.1em;
|
|
}
|
|
#address {
|
|
font-size:1em;
|
|
color:#f06;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<% if @geo %>
|
|
<%= @geo %>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<textarea cols='70' rows='10' id="address">{"osm":{"node":[{"lat":"<%= @geo.lat %>","lon":"<%= @geo.lng %>","visible":"true","display":true,"img":"image-url.png"}]}}</textarea>
|
|
|
|
<hr />
|
|
|
|
<% end %>
|
|
|
|
<form action="/utility/geocode" method="get" accept-charset="utf-8">
|
|
<label for="location">Location:</label>
|
|
<br />
|
|
<input type="text" name="location" value="type a complete address here" id="location">
|
|
|
|
<p><input type="submit" value="Geocode..."></p>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|