M
M
Mark2019-07-26 08:39:19
API
Mark, 2019-07-26 08:39:19

How to make a city definition not in Moscow, but in Moscow in Yandex API 2.0?

Hello, how in Yandex API 2.0 to make the definition of the city not in (city (Moscow)), but in (city (Moscow)).
Now:
OPEN YOUR CAR SERVICE IN MOSCOW
Do:
OPEN YOUR CAR SERVICE IN MOSCOW
Code:

<script>
$(document).ready(function(){
ymaps.ready(function(){
var geolocation = ymaps.geolocation;
$('#wb_gorode').text('в '+geolocation.city);
});});
</script>

<h1> Откройте свой автосервис <div id="wb_gorode"></div></h1>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2019-07-26
@Mark54

obviously replace a with e at the end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question