Skip to content

Commit b582cf8

Browse files
committed
Formattazione per mylocation e risultato reverse geocoding
1 parent 9c552b8 commit b582cf8

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/client/js/otp/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ otp.config = {
193193
{
194194
'name': 'Geococker',
195195
'className': 'otp.core.GeocoderPelias',
196-
'url': 'http://www.bunet.torino.it/suggest',
196+
'url': '/suggest',
197197
'addressParam': 'query',
198198
}
199199
],

src/client/js/otp/core/GeocoderPelias.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ otp.core.GeocoderPelias = otp.Class({
7575
var response = null;
7676
if(data.features.length>0){
7777
var props = data.features[0].properties;
78-
var response = props.name + ', ' + props.local_admin_name + ' ('+props.admin1_abbr +')'
78+
response = props.name + ', ' + props.local_admin_name
79+
if (props.admin1_abbr)
80+
response += ' ('+props.admin1_abbr +')'
7981
}
8082
callback.call(this, response);
8183
})

src/client/style-5t-mqueries.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949
#otp-planner-optionsWidget .address-fields .field input{
5050
height:26px;
51-
padding:0px 0px 0px 50px;
51+
padding:0px 0px 0px 40px;
5252
}
5353
#otp-planner-optionsWidget-timeSelector-timeSelector select {
5454
width: 133px;

src/client/style-5t.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ strong.trigger-option.open .fonticon:before { content: '\e80f'; color:#fff} /* '
690690

691691
}
692692
#otp-planner-optionsWidget .address-fields .field input{
693-
width:85%;
693+
width:78%;
694694
height:22px;
695695
padding:0px 0px 0px 30px;
696696
font-size:1.1em;

0 commit comments

Comments
 (0)