×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Default to Miles

Default to Miles 9 years 2 months ago #31985

  • Steven Voorhees
  • Steven Voorhees's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 6
Hello. I live in the United States, and for directions I need the directions to default to Miles, rather than kilometers.

I see how you can manually change this under Options on the the Google Maps directions. But, is there a way to make miles the default, rather than having to have someone change it every time?

Default to Miles 9 years 2 months ago #31991

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It's relativly easy, but you would have to make this each time till I put an option for this in the backend.
go to this file:
media\com_hotspots\js\v4\entities\direction.js
line 17 is
units: 'METRIC',

change it to
units: 'IMPERIAL',

et voilà! :)

cheers,
daniel

Default to Miles 9 years 2 months ago #31992

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
And why is this question posted in pre-sales?

Default to Miles 9 years 2 months ago #32038

  • Steven Voorhees
  • Steven Voorhees's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 6
I have no idea why that was in pre-sales. I was sure I was in the Hotspot Pro category when I posted it.

Default to Miles 9 years 2 months ago #32048

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Okay, thanks! Moved it back to pro. The trick is working, right?
  • Page:
  • 1
Time to create page: 0.111 seconds