D
D
Dima2014-08-27 05:20:56
PHP
Dima, 2014-08-27 05:20:56

How to set a character in front of the temperature?

The weather was required for the city site - I decided to use the API from openweathermap.org. Everything turned out great and on request: http://api.openweathermap.org/data/2.5/weather?q=M... I get all the data I need. But I get them without the "+" or "-" symbol. It will be strange if in winter the site says "14 ° without a minus. So I can't just leave it like that.
Perhaps you know how to deal with this? I rely on your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2014-08-27
@avbrugen

Try to get the weather for some city where it's winter. Surely just a plus is not provided
Well, there is still such an option
habrahabr.ru/post/232529

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question