# How do i get the coordinates?

**URL:** https://ask.openrouteservice.org/t/how-do-i-get-the-coordinates/1167
**Category:** matrix
**Created:** [December 9, 2019, 7:42pm UTC](https://ask.openrouteservice.org/t/how-do-i-get-the-coordinates/1167 "2019-12-09T19:42:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ankush\_Banik](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/ankush_banik/32/337_2.png) [@Ankush\_Banik](https://ask.openrouteservice.org/u/Ankush_Banik)
#### Post date: [December 9, 2019, 7:42pm UTC](https://ask.openrouteservice.org/t/how-do-i-get-the-coordinates/1167/1 "2019-12-09T19:42:34Z")

</div>

i am looking over the example…  
my problem is, i want to use this api with my code…when ever any one enter two location name it should show the distance and time , but here i am checking…in your example you just use the coordinates…but how user will know there coordinates ??  
how can i over come that,please help me it can give me a job

---

<div class="post-metadata">

### Author: ![Serg9](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/serg9/32/2242_2.png) [@Serg9](https://ask.openrouteservice.org/u/Serg9)
#### Post date: [December 10, 2019, 7:59am UTC](https://ask.openrouteservice.org/t/how-do-i-get-the-coordinates/1167/2 "2019-12-10T07:59:28Z")

</div>

You need a different tool for that, a geocoder. See [https://github.com/komoot/photon](https://github.com/komoot/photon) for example.

---

<div class="post-metadata">

### Author: ![nils](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/nils/32/6_2.png) [@nils](https://ask.openrouteservice.org/u/nils)
#### Post date: [December 10, 2019, 8:33am UTC](https://ask.openrouteservice.org/t/how-do-i-get-the-coordinates/1167/3 "2019-12-10T08:33:00Z")

</div>

Yep, you need geocoding, as @Serg9 said.

We have our own Pelias endpoint for that:  
[https://openrouteservice.org/dev/#/api-docs/geocode](https://openrouteservice.org/dev/#/api-docs/geocode)
