A
A
Andrey2019-07-17 11:14:48
Java
Andrey, 2019-07-17 11:14:48

How to get the stop name in Yandex Map android?

How to get the name of a stop by geodata in Yandex Map android?
there is a code for determining the country !!! how to convert to stops?

private String getCountry() {
        Geocoder geocoder = new Geocoder(this, Locale.getDefault());
        try {
            List<Address> addresses = geocoder.getFromLocation(latitude, longitude, 1);
            if (addresses != null) {
                Address returnedAddress = addresses.get(0);
                city = returnedAddress.getCountryName().toString();
            } else {
                city = "Error";
            }
        } catch (IOException e) {
            e.printStackTrace();
            city = "Error";
        }
        return city;
    }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Troshkov, 2017-10-23
@Dark-Side

Everyone has different levels of correctness. If you know the basics then use the tools and it will be right. And the understanding of what and how will come only with experience. Undertake to remake some kind of website and see what you like about its layout, and what infuriates you. If it's annoying, then it's probably wrong. For example, the absolute positioning of all blocks, try adding another block and you will understand that this is a bad layout. I think so, but about the tools, I use Marsy (similar to avocode) https://vk.com/markupeasyto quickly copy text and styles and compare text in responsive layouts. Bootstrap, less, pug, I collect gulp, instead of pixel perfect I use the site image as a background and set a hotkey. Customized with live style. Plugins for gulp, collecting pu, less, and reloading pages, such a minimum. BEM and other things didn’t work for me personally, it’s easier for me to make a block in pug and connect it.
I also use a self-written plugin for sublime, it parses a piece of html and issues css rules for it, it speeds up a lot.
It turns out like this:
We write the backbone in pug, quickly copy the text from Marsy, run it through the plugin, get a list of rules, paste it into css or less , scatter the styles also copying in one click from marsy, open the browser, turn on the live style and the background image and adjust the pixels there already. And then they check the page with a script, for duplicates in styles, and delete the excess right there. I open css and delete empty rules. Ready.
Marsy is also my experience, if you ask anything.

O
Olga Veter, 2017-10-20
@vetero4eg

So do not do wrong, and it will be right.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question